4 <script src=
"../../resources/js-test.js"></script>
7 <div id=
"description"></div>
8 <div id=
"console"></div>
10 description('Test Promise reject inside Blink.');
12 window
.jsTestIsAsync
= true;
15 var promise
= new Promise(function(res
, rej
) { reject
= rej
; });
16 var blinkPromise
= internals
.createRejectedPromise(42);
18 promise
.then(function() {
19 testFailed('fulfilled');
23 testFailed('fulfilled');
26 shouldBe('result', '42');
27 }).then(finishJSTest
, finishJSTest
);