Skip to content

Commit

Permalink
fixup! Replace usage of setTimeout with step_timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed May 9, 2015
1 parent e7020d1 commit 30369a2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions html/webappapis/timers/evil-spec-example.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<title>Interaction of step_timeout and WebIDL</title>
<title>Interaction of setTimeout and WebIDL</title>
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-windowtimers-settimeout">
Expand All @@ -16,8 +16,8 @@
var log = '';
function logger(s) { log += s + ' '; }

step_timeout({ toString: function () {
step_timeout("logger('ONE')", 100);
setTimeout({ toString: function () {
setTimeout("logger('ONE')", 100);
return "logger('TWO'); t.step(finishTest)";
} }, 100);
</script>
4 changes: 2 additions & 2 deletions navigation-timing/test_navigate_within_document.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1>Description</h1>
initial_timing[property] = timing[property];
}
window.location.href = "#1";
step_timeout("check_timing_not_changed()", 0);
step_timeout(check_timing_not_changed, 0);
}

function load_handler()
Expand All @@ -57,7 +57,7 @@ <h1>Description</h1>
timing = performanceNamespace.timing;

window.removeEventListener("load", load_handler);
step_timeout("save_timing_after_load()", 0);
step_timeout(save_timing_after_load, 0);
}

window.addEventListener("load", load_handler, false);
Expand Down
2 changes: 1 addition & 1 deletion navigation-timing/test_navigation_type_reload.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
until after the load event has finished firing */
step_timeout(do_test, 0);
}
step_timeout("reload_the_frame();", 100);
step_timeout(reload_the_frame, 100);
}

function reload_the_frame()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
form.submit();

// set timeout to give the iframe time to load content
step_timeout('A_08_02_03_T01.checkIframeContent()', 2000);
step_timeout(A_08_02_03_T01.checkIframeContent, 2000);
});
</script>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
// should be reloaded, so iframe context shouldn't be affected

// set timeout to give the iframe time to load content
step_timeout('A_08_01_01_T01.checkIframeContent()', 2000);
step_timeout(A_08_01_01_T01.checkIframeContent, 2000);
});
</script>
</body>
Expand Down

0 comments on commit 30369a2

Please sign in to comment.