| Index: LayoutTests/fast/js/Promise-simple-fulfill-inside-callback.html
|
| diff --git a/LayoutTests/fast/js/Promise-simple-fulfill-inside-callback.html b/LayoutTests/fast/js/Promise-simple-fulfill-inside-callback.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0458b24279745445699f03b1a6709f0ffc89b1ed
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/js/Promise-simple-fulfill-inside-callback.html
|
| @@ -0,0 +1,25 @@
|
| +<!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;
|
| +
|
| +var future = new Promise(function(resolver) {
|
| + resolver.fulfill('hello');
|
| +}).then(function(result) {
|
| + window.result = result;
|
| + shouldBeEqualToString('result', 'hello');
|
| + finishJSTest();
|
| +});
|
| +
|
| +</script>
|
| +<script src="resources/js-test-post.js"></script>
|
| +</body>
|
| +</html>
|
|
|