Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / resources / Promise-then-without-callbacks-in-workers.js
blob056df5b5919cbf76b5e30eab7496e8041e1ae812
1 importScripts('../../../resources/js-test.js');
3 description('Test Promise.');
5 var global = this;
7 global.jsTestIsAsync = true;
9 new Promise(function(resolve) { resolve('hello'); })
10 .then()
11 .then(function(result) {
12 global.result = result;
13 shouldBeEqualToString('result', 'hello');
14 finishJSTest();
15 });