blob: d0fd7933f2d788846a8b7176ce80ac80f5787502 [file] [log] [blame]
importScripts('../../resources/js-test-pre.js');
description('Test Promise.');
var global = this;
global.jsTestIsAsync = true;
new Promise(function(resolve) { resolve('hello'); })
.then()
.then(function(result) {
global.result = result;
shouldBeEqualToString('result', 'hello');
finishJSTest();
});