Index: LayoutTests/fast/js/Promise-get.html |
diff --git a/LayoutTests/fast/js/Promise-get.html b/LayoutTests/fast/js/Promise-get.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..50d5ce5e39071a5f60ac5b01d9dc713b0f3477fd |
--- /dev/null |
+++ b/LayoutTests/fast/js/Promise-get.html |
@@ -0,0 +1,29 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="resources/js-test-pre.js"></script> |
+</head> |
+<body> |
+<div id="description"></div> |
+<div id="console"></div> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+description('Test Promise.'); |
+ |
+var promise = new Promise(34); |
+ |
+shouldBeTrue('promise instanceof Promise'); |
+shouldBe('promise.get(12)', '34'); |
+shouldBe('promise.get(8)', '12'); |
+shouldBe('promise.value', 'undefined'); |
+ |
+var promiseStatic = Promise.getStatic(88); |
+shouldBeTrue('promiseStatic instanceof Promise'); |
+shouldBe('promiseStatic.get(42)', '88'); |
+ |
+</script> |
+<script src="resources/js-test-post.js"></script> |
+</body> |
+</html> |