aboutsummaryrefslogtreecommitdiff
path: root/test/js/promise_s05.t.js
blob: 2cb4981cf9de52431dc14e2d981d1dc6b1193e89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*---
includes: []
flags: [async]
---*/

let called = false;

Promise.resolve('Success')
.then(
    function(value) {
        assert.sameValue(value, 'Success');
        called = true;
    },
    function(value) {
        $DONOTEVALUATE()
})
.then(() => assert.sameValue(called, true))
.then($DONE, $DONE);