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

Unified Diff: third_party/WebKit/LayoutTests/presentation/presentationrequest.html

Issue 2572473003: [Presentation API] PresentationRequest::getAvailability() should return the same promise (Closed)
Patch Set: rebase with master Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/presentation/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/presentation/presentationrequest.html
diff --git a/third_party/WebKit/LayoutTests/presentation/presentationrequest.html b/third_party/WebKit/LayoutTests/presentation/presentationrequest.html
index d4b538c2fda08c92d618cc90abb9a24c805a1769..c19a84db49bb7044fb7ff1d1c9a2fb49bed5c7ed 100644
--- a/third_party/WebKit/LayoutTests/presentation/presentationrequest.html
+++ b/third_party/WebKit/LayoutTests/presentation/presentationrequest.html
@@ -23,6 +23,13 @@ test(function() {
assert_not_equals(navigator.presentation.defaultRequest.onconnectionavailable, undefined);
}, "Test that navigator.presentation.defaultRequest.onconnectionavailable isn't reset after gc()");
+test(function() {
+ var request = new PresentationRequest("http://example.com");
+ var promise_1 = request.getAvailability();
+ var promise_2 = request.getAvailability();
+ assert_true(promise_1 === promise_2);
+}, "Test that the PresentationRequest.getAvailability() returns same promise object.");
+
</script>
</body>
</html>
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/presentation/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698