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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/workers/semantics/navigation/002.html

Issue 2418853003: Worker: Import "imported/wpt/workers" tests (Retry) (Closed)
Patch Set: rebase Created 4 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!--
2
3 /*
4 -->
5 <!doctype html>
6 <title>navigating 2</title>
7 <script src="/resources/testharness.js"></script>
8 <script src="/resources/testharnessreport.js"></script>
9 <div id=log></div>
10 <script>
11 var date;
12 var newDate;
13 </script>
14 <iframe></iframe>
15 <script>
16 var t = async_test();
17 var iframe = document.querySelector('iframe');
18 onload = t.step_func(function() {
19 iframe.src = "001-1.html?" + Math.random();
20 });
21 var start_test = t.step_func(function() {
22 window[0].document.links[0].click();
23 });
24 var after_load = t.step_func(function() {
25 newDate = new Date();
26 setTimeout(this.step_func(function() {
27 assert_less_than(Number(date), Number(newDate));
28 assert_equals(window[0].document.title, 'foo');
29 this.done();
30 }), 500);
31 });
32 </script>
33 <!--
34 */
35 //-->
36
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698