Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
testIndexOfNotEscaped : function () {
var test = "abc \\\d \d de\fg";
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "a") === 0);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "\\") === 4);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "d") === 7);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "f") === -1);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "h") === -1);
},
testIndexOfNotEscaped : function () {
var test = "abc \\\d \d de\fg";
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "a") === 0);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "\\") === 4);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "d") === 7);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "f") === -1);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "h") === -1);
},
testIndexOfNotEscaped : function () {
var test = "abc \\\d \d de\fg";
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "a") === 0);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "\\") === 4);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "d") === 7);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "f") === -1);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "h") === -1);
},
testIndexOfNotEscaped : function () {
var test = "abc \\\d \d de\fg";
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "a") === 0);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "\\") === 4);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "d") === 7);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "f") === -1);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "h") === -1);
},
testIndexOfNotEscaped : function () {
var test = "abc \\\d \d de\fg";
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "a") === 0);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "\\") === 4);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "d") === 7);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "f") === -1);
this.assertTrue(ariaUtilsString.indexOfNotEscaped(test, "h") === -1);
},