blob: a3bb9ea9ec903188219c0bf8f702f32aafcd9cc3 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<div id="description"></div>
<div id="console"></div>
<script>
description('Test Promise.');
window.jsTestIsAsync = true;
new Promise(function(resolve) { resolve('hello'); })
.then()
.then(function(result) {
window.result = result;
shouldBeEqualToString('result', 'hello');
finishJSTest();
});
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>