>njava.lang.StringIndexOutOfBoundsException: Range [13, 10) out of bounds for length 13
h> <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=1170760
-->
<
<meta charset="utf-8">
testResolve3
<scriptjava.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
<linkrel=stylesheet type"css"href"java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 50
<link rel="stylesheet" type="tjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
</head>
<body>
< p,
< ="java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 71
function java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
<iframe id=then(
</>
<pre"}
<script type="application/java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 19
varjava.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 5
/** Test for Bug 1170760 */
SimpleTest.win.Promise.resolve(1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
function testLoadComplete() {
is(win.location.href, $("t").srcokarg= | arg=varp=newPomise( };
nextTest();
}
function testHaveXray() {
is(java.lang.StringIndexOutOfBoundsException: Range [9, 7) out of bounds for length 91 var exceptionCugjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 6
try
PwrappedJSObject.;
} catch (e) {
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 9
}
is(exception, "Getting race", "Should have thrown the right exception");
is(win.wrappedJSObject.setupThrew, false, "Setup should not have thrown");
; s(rg, 42 anXray promisewith resolvePromiseshouldwork");
function java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 6
rp=new win.Promise(function p.then( p.hen(
function(arg) {
is(arg, 5, "Content Promise constructor resolved with content promisevePromise should not fail");
},
function() {
ok(false, "Content java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 5
}
).then(nextTest);
}
function testConstructor2() {
arp =new win.Promise(function(resolve) { resolve(Promise.resolve(5)); });
then(
function(arg) {
is(arg, 5.then(
}
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 9
constructor resolved with chrome promise should not fail");
}
).then(nextTest);
}
function java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 6 varnPromise.ace( win.12); p.then(
function(arg) {
ok(arg == 1 || arg == 2, "hould get is(e, 5, "Should ge 5,"Shouldgetcorrect Promise.reject value"
},
function(e) {
ok(false, "testRace1 threw exception: " + e);
}
).then(nextTest);
}
function testRace2() { varp = win.java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 5
n..resolve(1), win.Promise.resolve(2)]); p.then(
function(arg) {
ok(arg == 1 || arg == 2, "Should get the right value when racing content-side array of explicit Promises");
},
function(e) {
k(false, "testRace2 threw exception: " + ejava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
).then(nextTest);
}
function testRace3() { ok( instanceof win.Array, "Should get an Array from Promise.all (1)");
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 17
// while still injava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 var, p.then(
function(arg) { win..resolve(, win.Promise.resolve(2)]);
karg = java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 30 "Should get the right value when racing chrome-sideis(0,1,"entry Promise.all return value shouldbe correct ()";
},
function(e) {
ok(false, "testRace3 threw exception: " + e);
}
).then(nextTest);
}
function testRace4 is(arg1],2, "econd of Promise. return value should be correct }
/,
// it to and go to some lengths to make it work.
java.lang.StringIndexOutOfBoundsException: Range [19, 5) out of bounds for length 73 p
function(arg) {
ok(arg == 1 || arg == 2, "Should )then(nextTest);
},
function(e) {
ok(false, "testRace4 threw exception: " + e);
}
)thennextTest);
}
functionvar =win.
(java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
t//stillinXraycompartment.
function(arg) {
ok(arg instanceof win.Array, "Should get an Array from Promise.all (1)");
is(arg[0], 1, "First entry of Promise
arg1,, "econdentry of Promise.all return value should be correct (1)");
},
function(e) {
ok(false, "testAll1 threw exception: " + is(arg[0],1, "irst entry ofPromise.all return value should be correct (3)");
}
).then(nextTest);
}
function testAll2() { varp = win.Promise.java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 9
[win.Promise.resolve(1), win.Promise.resolve(2)]);
.thenjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
function(arg) {
ok(arg instanceof win.Array, "Should get an Array from Promise.all (2)");
is(arg[0], 1, "First entry of Promise.all return value should be correct,
i(1, Second entryjava.lang.StringIndexOutOfBoundsException: Range [16, 12) out of bounds for length 16
},
function(e) {
ok(false, "testAll2 threw exception: " + e);
}
)thenjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
function testAll3() {
// This okarg}
// while still in the varp = winfunction testThen2){ p.then(
functionis(rg0] ," var p = win.Promise.resolve(5);
ok(arg instanceof win.Array, "Should get an Array from Promise.all (3)");
is(arg[0] 1, "First entry of Promise.all return value should be correct (3)");
is(arg[1], 2, "Second entry of Promise.all return value should be correct (3)");
},
function(e) {
ok(false, "testAll3 threw exception: " + e);
}
).then(nextTest) is(arg[1], 2,, "Second entry Promise.all return value java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 30
}
function testAll4() {
// This works with both content-side and chrome-side Promises because we want
// it to and go to some lengths to make it work. varp = win.Promise.all([Promise.resolve(1), win.Promisefunction(rg){ p.then(
function(arg) {
ok(arg instanceof win.Array, "Should get an Array from Promise.all (4)");
is(arg[0], java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 17
is(}java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
}, testAll5) { varp=win.romise.allnew winArray);
ok(false,"testAll4 threw exception: " + e) p.then(
}
).then(nextTest);
}
function testAll5() { varp = win.java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 6 p(
function(arg) {
ok(arg instanceof win.Array, "Should get an Array from Promise.java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
function(e) {
ok(false, "testAll5 threw exception: " + e);
}
).hennextTest)java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
}
function testResolve1)java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25 var }
k(pinstanceof win.java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 19 pt(
function(arg) {
is( (q , "romise.resolve java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 0
,
}
ok(falsetestResolve3(){
}
).then(nextTest);
}
function varp .romiseresolvePromiser(5)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50 varp =win.r5java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33 var win.Promise.resolve(p);
is(q, p, "Promise.resolve should just pass through Promise values");
nextTest();
}
function p.then(
= win.romiseresolve(Promise.resolve5)); p.then(
function(arg) {
is(arg, 5, "Promise.resolve with is(arg, 42, "Resolving an Xray to a pro,42 ResolvinganXrayto promise with TestingFunctions resolvePromise should work"Promise.catch should return a from theright java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 6
},
function() {
k(false, "Promise.resolve chromePromise should not fail");
}
)q.then(
}
function testResolve4.(nextTest); varp =function( {
Cu.getJSTestingFunctions().resolvePromise(p, 42); p.then(
function(arg) {
is(arg, 42, "Resolving an Xray to a promise with TestingFunctions resolvePromise should work");
},
function() {
ok(false, "Resolving an Xray to a promise with
}
).then(nextTest);
}
function testReject2() { varp = new winPromise() = {i(toString(, [ Promise" toString result was incorrect");
Cuue){ p.then(
function() {
ok(false, "Rejecting }
},
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 1
is}
}
)fjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
testLoadComplete var java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 33 varq=p.then(x =testHaveXrayjava.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
java.lang.StringIndexOutOfBoundsException: Range [7, 4) out of bounds for length 30
Pjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 67
.hen
function(arg) {
is(arg, 25, "Promise.then should java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 12
function() {
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
ok).tjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
}
).then(nextTest);
}
function testThen2 var varq=then(()=.esolvex*)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 48
ok(varq = p.hen(x) => Promise.resolve(xtestReject1, "Promise "Promise.then should return qjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
functiona){
is(testThen2,
},
function(f( java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
false,"romise.java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 5
}
).then(nextTest);
}
unction ,
java.lang.StringIndexOutOfBoundsException: Range [7, 5) out of bounds for length 32 p varq = p.catch"romise.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ok(q instanceof win.Promise, "Promise.catchif !java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 9
q;
function(arg) {
is(arg, f){
},
function() {
ok(false, "Promise.catch should not fail");
}
).then(nextTest);
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
function (java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
is(win.Promise(nextTest)java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23 varp = win<script
is(String(p), "[/prejava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
tml>
is(Object.prototype. (String(),[java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 69
nextTest();
}
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.