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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/html/browsers/browsing-the-web/history-traversal/browsing_context_name.html

Issue 2668783003: Import wpt@767dc2a4f049c761bd146d61de2ea860a895a624 (Closed)
Patch Set: Update test expectations and baselines. 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/external/wpt/html/browsers/browsing-the-web/history-traversal/browsing_context_name.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/browsers/browsing-the-web/history-traversal/browsing_context_name.html b/third_party/WebKit/LayoutTests/external/wpt/html/browsers/browsing-the-web/history-traversal/browsing_context_name.html
index 4dd9027ab9847f9b9015278af2a5be1711055ced..60a8acb09833e1eaf14b374062cf9f466ebeadfe 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/html/browsers/browsing-the-web/history-traversal/browsing_context_name.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/browsers/browsing-the-web/history-traversal/browsing_context_name.html
@@ -2,41 +2,12 @@
<title>Retaining window.name on history traversal</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
-<div id="log"></div>
<pre id="step_log"></pre>
-<iframe id="test"></iframe>
-<script>
-
-var t = async_test(undefined, {timeout:10000});
-var f = document.getElementById("test");
-var l = document.getElementById("step_log");
-var navigated = false;
-
-log = function(t) {l.textContent += ("\n" + t)}
-
-var steps = [
- function() {f.src = "browsing_context_name-1.html"},
- function() {
- navigated = true;
- assert_equals(f.contentWindow.name, "test", "Initial load");
- setTimeout(next, 0);
- },
- function() {f.src = "browsing_context_name-2.html"; setTimeout(next, 500)},
- function() {
- assert_equals(f.contentWindow.name, "test1");
- setTimeout(next, 0);
- },
- function() {history.back(); setTimeout(next, 500)},
- function() {
- assert_equals(f.contentWindow.name, "test1", "After navigation");
- t.done();
- }
-].map(function(x) {return t.step_func(function() {log("Step " + step); x()})});
-var step = 0;
-next = t.step_func(function() {steps[step++]()});
-
-f.onload=next;
-
-onload = function() { setTimeout(next, 0); };
+<script>
+var t = async_test();
+t.step(() => {
+ win = window.open("browsing_context_name-0.html");
+ t.add_cleanup(() => win.close());
+});
</script>

Powered by Google App Engine
This is Rietveld 408576698