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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/webappapis/timers/evil-spec-example.html

Issue 1166693007: W3C Test: import web-platform-tests/html/webappapis (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype html>
2 <title>Interaction of setTimeout and WebIDL</title>
3 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
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">
6 <link rel="help" href="https://heycam.github.io/webidl/#es-operations">
7 <script src="../../../../../resources/testharness.js"></script>
8 <script src="../../../../../resources/testharnessreport.js"></script>
9 <div id="log"></div>
10 <script>
11 var t = async_test()
12 function finishTest() {
13 assert_equals(log, "ONE TWO ")
14 t.done()
15 }
16 var log = '';
17 function logger(s) { log += s + ' '; }
18
19 setTimeout({ toString: function () {
20 setTimeout("logger('ONE')", 100);
21 return "logger('TWO'); t.step(finishTest)";
22 } }, 100);
23 </script>
OLDNEW
« no previous file with comments | « LayoutTests/imported/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/006-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698