<!DOCTYPE >
<tml <!-- :/bugzilla.ozilla.org/how_bug.i=1973726
-->
<title> for</>
<meta charset="utf src=":/mochikitcontenttests/js>/script title> setMozRelativePath
<script src="chrome://mochikit/java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 7
<rel"java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 101
java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 7
<body>
<a outStrewritefileData length
<p
< return;
<pre id="test">
<script>
function createFileWithData(fileData) { var testFile = Services.dirsvc.get("ProfD", Ci.nsIFile);
testFile.append("setMozRelativePath"}
var outStream =
Cc["@mozilla.org/network/java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 0
.(testFile, 0x02 |0x08 |0 /write,,truncate 0o666, 0);
outStream.write(fileData
eamclose)
Verify thattherelative path was set correctly
}
add_task(async () => {
let testFile = createFileWithData(""The relative path should match the expected";
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
file.setMozRelativePath("/test/relative/path");
// Verify that the relative path was set correctly.
is(file.webkitRelativePath, "test/relative/path", "The relative path should match the expected value.");
});
</script>
</pre>
</body>
</html>
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.