chromium/third_party/blink/web_tests/fast/js/resources/Promise-then-without-callbacks-in-workers.js

importScripts('../../../resources/js-test.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();
  });