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

Unified Diff: third_party/WebKit/LayoutTests/presentation/presentation-navigation.html

Issue 2643473002: [Presentation API] Allow PresentationConnection state change to "Connecting" (Closed)
Patch Set: Address Mark and Bin's comments Created 3 years, 11 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: third_party/WebKit/LayoutTests/presentation/presentation-navigation.html
diff --git a/third_party/WebKit/LayoutTests/presentation/presentation-navigation.html b/third_party/WebKit/LayoutTests/presentation/presentation-navigation.html
index ba5e23032f5272691586c6b3ca584ae15466442c..cc921ff8d9f6502989d1c3ec30451b2686188969 100644
--- a/third_party/WebKit/LayoutTests/presentation/presentation-navigation.html
+++ b/third_party/WebKit/LayoutTests/presentation/presentation-navigation.html
@@ -6,16 +6,17 @@
<iframe></iframe>
<script>
-var iframe = document.querySelector('iframe');
+const iframe = document.querySelector('iframe');
async_test(t => {
iframe.onload = t.step_func(() => {
- var presentation = iframe.contentWindow.navigator.presentation;
+ const presentation = iframe.contentWindow.navigator.presentation;
if (iframe.src.endsWith('#after-reload')) {
assert_equals(presentation.defaultRequest, null);
t.done();
} else {
- presentation.defaultRequest = new PresentationRequest("https://example.org");
+ presentation.defaultRequest =
+ new PresentationRequest("https://example.org");
assert_not_equals(presentation.defaultRequest, null);
iframe.src += '#after-reload';

Powered by Google App Engine
This is Rietveld 408576698