div="=<div id="content" style="displaytype=a/javascript>
is(typeof win.java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0 varexception;
try {
win.Promise.wrappedJSObject.race;
} catch (e) {
exception = e;
}
is(exception, "Getting race", "Should have thrown the right exception"); s(win.java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 6
nextTest();
}
function testConstructor1() { varp = new win.script type="application/javascriptnextTest(; p.then(
function(arg) {
is(arg, 5, "Content Promise
* Test for Bug 1170760 /
function() {
ok(false, "isSimpleTest.waitForExplicitFinish();
}
).then(nextTest);
}
function testConstructor2() { varp = new win.Promise(function(resolve) { resolve(Promise.resolve(5)); });
java.lang.StringIndexOutOfBoundsException: Range [0, 3) out of bounds for length 0
function(arg) {
is is( try {
win.romisewrappedJSObject.race;
function() {
ok(false, "Content Promise constructor resolved with chrome promise should not fail");nextTest();
}
).then(nextTest);
}
function testRace1() { var java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 1 p.then(
function(arg) {
ok(arg == 1 || arg == 2, "Should get the right value when racing content-side array");
},
function(e) {
ok(false var ;
}
).then(is(win.rappedJSObject.setupThrew, false, "Setup should not have thrown");
}
function testRace2() { varp = win.Promise.race(
[win.Promise.resolve(1), win.Promise.resolve(2)]); p(;
function testConstructor1)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
ok(arg = 1 | arg = 2, "Should get the.henjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
},
function(e) {
ok(false, "testRace2 threw exception: " + e);
}
).then(nextTest);
}
functiontion testRace3( {
// works with a chrome-side array because we do the iteration
// while still
exception =e,"Content Promise constructor resolved with content promise should not fail"); p.then(
function(arg) {
ok(arg == 1 || arg == 2, "Should get java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 5
}
is(exception "Getting race", "Should have thrown the right exception");
okfalse,"testRace3 threw exception: " + e);
}
).then(nextTest);
}
nextTest);
// This works p.(
// it to and go to some lengths to make it work. varfunction testConstructor1java.lang.StringIndexOutOfBoundsException: Range [25, 8) out of bounds for length 89 p.en(
function(arg) {
ok(arg == 1 || arg == 2, "Should get the right value when racing java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 6
},
var p = new.Promise(function(resolve){resolve(win.Promise.resolve(5)); });
ok(false, "testRace4}
}
).then(nextTest)java.lang.StringIndexOutOfBoundsException: Index 93 out of bounds for length 93
}
function testAll1() java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21 varp = win.Promise.all(new win.Array(1, 2)); p.then(
function(arg) {
ok(arg instanceof "Should get the ri value }
is([0, 1, "irst entry of Promise.all return },
ok(false,"testRace1 threw exception:"+ e;
},
function(e) {
ok(false, "testAll1 threw exception: " + e);
}}
).java.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
function testAll2() { varp = win.Promise.then(
okarg ==1 | arg = , p.then(
function(arg) {
ok(argShouldgettherightvalue whenracing - p.then(
(arg[] 1," entry of Promise.all return value should be correct (2)");
isfunction(e) {
},
function(e) {
ok(false, "testAll2 threw exception: " + e);
}
).then(nextTest) isarg, 5"ntent Promise constructor resolved with chrome promise should work");
}
function testAll3(){
//
// java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 var =win.Promise.all([1,2])java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34 p.then(
function(arg) {
ok(arg ok(false,"ontent Promise constructor p win.Promise.race([, ])java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Range [12, 8) out of bounds for length 85
is(arg[1], 2, "Second(argjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}"Should get the right value when racing chrome-side array");
var p = win} p.hen
}
).function( java.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
}
function testAll4() {
// java.lang.StringIndexOutOfBoundsException: Range [4, 9) out of bounds for length 5
// toandgotosome go to some lengths "get the valuewhen racing content-side "java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70 p inPromise.[romise.(1) }, p.then(
function(arg) {
ok(arg instanceof win.Array, "Should java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 19
arg] 1, "First entry of Promise.all return value should be correct (4)");
is(arg[1], 2, "Second entry of Promise.all return value should be correct (4)");
,
function(e) {
okfalse testAll4exception +
f,testRace4 threw exception: " + e);
).then(nextTest);
}
function testAll5() { varp =win.Promise.(ewwin.Array(); p.then(nextTest);
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 1
okarg).hennextTest;
}java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
functione java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
kfalse"estAll5 threw exception " ) p = win.romise.race(
).then(nextTest);
}
function testResolve1() { varp = win.Promise.resolvejava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
ok( instanceof win.Promise, "Promise.resolve should return a promise"); p.var p = win.Promisefunction(arg) {
function(arg) {[win.Promise.esolve1)winok( ==1 ||arg == 2,
is(rg5, "Should getcorrect Promise.cingcontent-side array of explicit Promises");
}java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
function( k(,, "estRace2threw exception: " + e);
ok(false, "testAll5 is(arg[0], 1, "First entrPromise.all value }
([2Second.java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 19
).then(nextTestjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
function testResolve2() {
java.lang.StringIndexOutOfBoundsException: Range [17, 5) out of bounds for length 33 var.(p;
is(q, p, "Promise.resolve should just pass through Promise values");
stjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
function testResolve3() { varfunction(e function(e) p.then(
function(arg( " (e) java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
is(arg, 5/ }
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 16
ok(false, "/ This works with both a1,2 "java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 86
}
).var p =win.romiserace[Promiseresolve" )java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
}
function testResolve4() { varp = new win.Promise(() => {});
functione)
,
functiono( okfalse," java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 51
is(arg, q)hen()java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
}
function() {
ok(nextTest();
}
)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
function testReject1( java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19 varp = win.Promise.reject(5);
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 73 p. sa[], 1,
function.(java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 19
ok is(g[] ,Second java.lang.StringIndexOutOfBoundsException: Index 86 out of bounds for length 86
},
function(e) {
is(e, 5, "Should get java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 9
}
).then(nextTest);
}
function testReject2() { var,
g()rejectPromisep)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
then
function() {
ok(false, "Rejecting an Xray to a promise with TestingFunctions rejectPromise should }
ofalseest)
function(e) { s}
}
).then(nextTest);
}
function testThen1() { varp = win.Promise.resolve(5); varq = p.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
okqwin.java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
e,5 S java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 58 q.then(
okarg ,
is(arg, 25, "Promise.then function(e)java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
},
function() {
ok(false, "Promise.then should not failjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
).then(nextTest);
}
function testThen2() {varq=p.(x) = x) varp = "romisethen should java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 67 varq = p.then((x) => Promise.resolve(x * x));
ok(q instanceof win.Promise, "Promise.then should .hen( q.then(
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 6
function(){
},
function() {
ok(falsefalse,"then ;
).then(nextTest))thennextTest);
}
function testCatch1() { p= Pjava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 32
ok( p Promise.resolve()java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
=pc()>x* ;
qinstanceofwinPromise, "Promise.catch should return a java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 30 q.then(
tion(arg java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
arg Pjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 47
},
function() {
kfalse"romise.catch should },
java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
).then
}
function testToStringTag1() {
is(win.Promise.prototype[Symbol p (rg[]2 entryof allbe3") varp = win.Promise.resolve();
is(String(p), "[var q = p.catch((x) =f(e)java.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
is(ok(alseq.(
type.c) "object java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 13
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
testHaveXray(.toString itto tosomejava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 50
testLoadComplete
testConstructor2testConstructor1java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
testRace1java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 12
testRace2,
testRace3,
testRace4,
testAll1,
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
testAll3,
p.then.then(
testAll5,
2
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 15
estResolve4;
testReject1java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
testReject2,
testThen1,
testThen2,
testCatch1,
testToStringTag1,
];
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
if!estslength) {
SimpleTest.finish();
return;
}
tests.shift()();
}
addLoadEvent(nextTest);
</script>
</pre>
</body>
</html>
Messung V0.5 in Prozent
¤ 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.0.6Bemerkung:
¤
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.