Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: LayoutTests/fast/js/Promise-get.html

Issue 17035004: [ABANDONED] Introduce Promise example implementation written in JavaScript. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « LayoutTests/fast/js/Promise-define-setter-expected.txt ('k') | LayoutTests/fast/js/Promise-get-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698