4 <script src=
"../../resources/js-test.js"></script>
7 <div id=
"description"></div>
8 <div id=
"console"></div>
10 description('Test Promise resolve inside Blink.');
12 window
.jsTestIsAsync
= true;
16 var promise
= new Promise(function(res
) { resolve
= res
; });
17 var blinkPromise
= internals
.createResolvedPromise(promise
);
19 promise
.then(function(value
) {
21 }).then(function(value
) {
23 shouldBe('result', '42');
24 }).then(finishJSTest
, finishJSTest
);