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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/timers/evil-spec-example.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
1 <!doctype html> 1 <!doctype html>
2 <title>Interaction of setTimeout and WebIDL</title> 2 <title>Interaction of setTimeout and WebIDL</title>
3 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"> 3 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
4 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com"> 4 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-windowtimers- settimeout"> 5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-windowtimers- settimeout">
6 <link rel="help" href="https://heycam.github.io/webidl/#es-operations"> 6 <link rel="help" href="https://heycam.github.io/webidl/#es-operations">
7 <script src="../../../../../resources/testharness.js"></script> 7 <script src="../../../../../resources/testharness.js"></script>
8 <script src="../../../../../resources/testharnessreport.js"></script> 8 <script src="../../../../../resources/testharnessreport.js"></script>
9 <div id="log"></div> 9 <div id="log"></div>
10 <script> 10 <script>
11 var t = async_test() 11 var t = async_test()
12 function finishTest() { 12 function finishTest() {
13 assert_equals(log, "ONE TWO ") 13 assert_equals(log, "ONE TWO ")
14 t.done() 14 t.done()
15 } 15 }
16 var log = ''; 16 var log = '';
17 function logger(s) { log += s + ' '; } 17 function logger(s) { log += s + ' '; }
18 18
19 setTimeout({ toString: function () { 19 setTimeout({ toString: function () {
20 setTimeout("logger('ONE')", 100); 20 setTimeout("logger('ONE')", 100);
21 return "logger('TWO'); t.step(finishTest)"; 21 return "logger('TWO'); t.step(finishTest)";
22 } }, 100); 22 } }, 100);
23 </script> 23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698