Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
testEncodeForQuotedHTMLAttribute : function () {
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute(undefined), "");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute(""), "");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute("abc"), "abc");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"'), '"');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"abc'), '"abc');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('a"b'), 'a"b');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('a"b"c"d'), 'a"b"c"d');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"""'), '"""');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"'), '"');
},
testEncodeForQuotedHTMLAttribute : function () {
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute(undefined), "");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute(""), "");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute("abc"), "abc");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"'), '"');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"abc'), '"abc');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('a"b'), 'a"b');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('a"b"c"d'), 'a"b"c"d');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"""'), '"""');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"'), '"');
},
testEncodeForQuotedHTMLAttribute : function () {
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute(undefined), "");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute(""), "");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute("abc"), "abc");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"'), '"');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"abc'), '"abc');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('a"b'), 'a"b');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('a"b"c"d'), 'a"b"c"d');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"""'), '"""');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"'), '"');
},
testEncodeForQuotedHTMLAttribute : function () {
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute(undefined), "");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute(""), "");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute("abc"), "abc");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"'), '"');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"abc'), '"abc');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('a"b'), 'a"b');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('a"b"c"d'), 'a"b"c"d');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"""'), '"""');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"'), '"');
},
testEncodeForQuotedHTMLAttribute : function () {
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute(undefined), "");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute(""), "");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute("abc"), "abc");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"'), '"');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"abc'), '"abc');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('a"b'), 'a"b');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('a"b"c"d'), 'a"b"c"d');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"""'), '"""');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"'), '"');
},
testEncodeForQuotedHTMLAttribute : function () {
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute(undefined), "");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute(""), "");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute("abc"), "abc");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"'), '"');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"abc'), '"abc');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('a"b'), 'a"b');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('a"b"c"d'), 'a"b"c"d');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"""'), '"""');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"'), '"');
},
testEncodeForQuotedHTMLAttribute : function () {
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute(undefined), "");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute(""), "");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute("abc"), "abc");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"'), '"');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"abc'), '"abc');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('a"b'), 'a"b');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('a"b"c"d'), 'a"b"c"d');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"""'), '"""');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"'), '"');
},
testEncodeForQuotedHTMLAttribute : function () {
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute(undefined), "");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute(""), "");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute("abc"), "abc");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"'), '"');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"abc'), '"abc');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('a"b'), 'a"b');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('a"b"c"d'), 'a"b"c"d');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"""'), '"""');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"'), '"');
},
testEncodeForQuotedHTMLAttribute : function () {
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute(undefined), "");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute(""), "");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute("abc"), "abc");
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"'), '"');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"abc'), '"abc');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('a"b'), 'a"b');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('a"b"c"d'), 'a"b"c"d');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"""'), '"""');
this.assertEquals(ariaUtilsString.encodeForQuotedHTMLAttribute('"'), '"');
},