blob: a2617eb98010656f3428f9ee4d2e9b9516ae0039 [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;
result = undefined;
Promise.fulfill('hello').then(function(result) {
window.result = result;
shouldBeEqualToString('result', 'hello');
finishJSTest();
}, function(result) {
testFailed('rejected');
finishJSTest();
});
shouldBe('result', 'undefined');
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>