Skip to content

Commit

Permalink
Remove unnecessary undefined parameter for async_test
Browse files Browse the repository at this point in the history
After remove the timeout parameter from async_test, the first parameter
`undefined` is no use and should be removed.
  • Loading branch information
qiuzhong committed Nov 21, 2018
1 parent cb656d1 commit 59a1292
Show file tree
Hide file tree
Showing 53 changed files with 53 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<pre id="step_log"></pre>
<iframe id="test"></iframe>
<script>
var t = async_test(undefined);
var t = async_test();
var f = document.getElementById("test");
var l = document.getElementById("step_log");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<pre id="step_log"></pre>
<iframe id="test"></iframe>
<script>
var t = async_test(undefined);
var t = async_test();
var f = document.getElementById("test");
var l = document.getElementById("step_log");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<form target="test" action="javascript:(function() {var x = new XMLHttpRequest(); x.open('GET', 'blank.html?pipe=trickle(d2)', false); x.send(); document.write('<script>parent.postMessage(&quot;write&quot;, &quot;*&quot;)</script>'); return '<script>parent.postMessage(&quot;click&quot;, &quot;*&quot;)</script>'})()"></form>
<a target="test" onclick="document.forms[0].submit()" href="href.html">Test</a>
<script>
var t = async_test(undefined);
var t = async_test();
t.step(function() {document.getElementsByTagName("a")[0].click()});
onmessage = t.step_func(
function(e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
javascript url involved here, unlike what the title claims! -->
<a target="test" onclick="javascript:(function() {var x = new XMLHttpRequest(); x.open('GET', 'blank.html?pipe=trickle(d2)', false); x.send(); document.write('write<script>parent.postMessage(&quot;write&quot;, &quot;*&quot;)</script>'); return '<script>parent.postMessage(&quot;click&quot;, &quot;*&quot;)</script>'})()" href="href.html">Test</a>
<script>
var t = async_test(undefined);
var t = async_test();
t.step(function() {document.getElementsByTagName("a")[0].click()});
onmessage = t.step_func(
function(e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<iframe id="test" name="test"></iframe>
<a target="test" href="javascript:parent.events.push('javascript');">Test</a>
<script>
var t = async_test(undefined);
var t = async_test();
var events = [];
t.step(function() {
document.getElementsByTagName("a")[0].click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<form target="test" action="javascript:parent.events.push('submit');"></form>
<a target="test" onclick="document.forms[0].submit()">Test</a>
<script>
var t = async_test(undefined);
var t = async_test();
var events = [];
t.step(function() {
document.getElementsByTagName("a")[0].click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<iframe id="test" name="test"></iframe>
<a target="test" onclick="parent.events.push('click');" href="javascript:parent.events.push('href')">Test</a>
<script>
var t = async_test(undefined);
var t = async_test();
var events = [];
t.step(function() {
document.getElementsByTagName("a")[0].click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var t = async_test(undefined);
var t = async_test();
started = false;
pages = []
timer = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var t = async_test(undefined);
var t = async_test();
started = false;
pages = []
timer = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var t = async_test(undefined);
var t = async_test();
started = false;
gone = false;
pages = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var t = async_test(undefined);
var t = async_test();
started = false;
gone = false;
pages = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var t = async_test(undefined);
var t = async_test();
started = false;
pages = []
timer = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var t = async_test(undefined);
var t = async_test();
started = false;
gone = false;
pages = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div id="log"></div>
<script>
setup({timeout:3600000});
var t = async_test(undefined);
var t = async_test();
started = false;
pages = []
timer = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div id="log"></div>
<script>
setup({timeout:3600000});
var t = async_test(undefined);
var t = async_test();
started = false;
pages = []
timer = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var t = async_test(undefined);
var t = async_test();
started = false;
pages = []
timer = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var t = async_test(undefined);
var t = async_test();
started = false;
pages = []
timer = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var t = async_test(undefined);
var t = async_test();
started = false;
pages = []
timer = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var t = async_test(undefined);
var t = async_test();
started = false;
pages = []
timer = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var t = async_test(undefined);
var t = async_test();
started = false;
pages = []
timer = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div id="log"></div>
<script>
setup({timeout:3600000});
var t = async_test(undefined);
var t = async_test();
var win = window.open("manual_click_assign_during_load-1.html");

var history_length;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div id="log"></div>
<script>
setup({timeout:3600000});
var t = async_test(undefined);
var t = async_test();
var win = window.open("manual_click_location_replace_during_load-1.html");

var history_length;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div id="log"></div>
<script>
setup({timeout:3600000});
var t = async_test(undefined);
var t = async_test();
var win = window.open("manual_click_replace_during_load-1.html");

var history_length;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div id="log"></div>
<script>
setup({timeout:3600000});
var t = async_test(undefined);
var t = async_test();
var win = window.open("manual_form_submit_assign_during_load-1.html");

var history_length;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div id="log"></div>
<script>
setup({timeout:3600000})
var t = async_test(undefined);
var t = async_test();
var load_count = 0;
var resized = false;
var win = window.open("reload_in_resize-1.html")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div id="log"></div>
<script>
setup({timeout:3600000});
var t = async_test(undefined);
var t = async_test();
var win = window.open("scripted_click_assign_during_load-1.html");

var history_length;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div id="log"></div>
<script>
setup({timeout:3600000});
var t = async_test(undefined);
var t = async_test();
var win = window.open("scripted_form_submit_assign_during_load-1.html");

var history_length;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var t = async_test(undefined);
var t = async_test();
t.step(function() {
var w = window.open("close_script_defer-1.html");
w.document.open()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var t = async_test(undefined);
var t = async_test();
var w = window.open("discard_iframe_history_3-1.html");
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<div id="log"></div>
<script>
setup({timeout:3600000})
var t = async_test(undefined);
var t = async_test();
var w = window.open("discard_iframe_history_1-1.html");
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<div id="log"></div>
<script>
setup({timeout:3600000})
var t = async_test(undefined);
var t = async_test();
var w = window.open("discard_iframe_history_2-1.html");
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
return testlib.addScript(contents, props, head, false);
}
var t = async_test(undefined)
var t = async_test()

function test() {
document.getElementById("log").textContent = "Please wait..."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div id="log">FAILED (This TC requires JavaScript enabled)</div>
<div></div>
<script>
var t = async_test(undefined)
var t = async_test()
log('inline script #1');
testlib.addScript('', { src:'scripts/include-1.js?pipe=trickle(d1)&'+Math.random() }, document.getElementsByTagName('head')[0], false );
log('end script #1');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</script>
<script type="text/javascript">
log('inline script #2');
var t = async_test(undefined)
var t = async_test()

function test() {
assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'inline script #2', 'external script #1', 'load on include-1.js', 'external script #7', 'load on include-7.js', 'external script #2', 'load on include-2.js']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div id="log">FAILED (This TC requires JavaScript enabled)</div>

<script>
var t = async_test(undefined);
var t = async_test();

sources = ["scripts/include-1.js?pipe=trickle(d2)", "scripts/include-2.js?pipe=trickle(d1)"];
sources.forEach(function(x) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div id="log">FAILED (This TC requires JavaScript enabled)</div>

<script>
var t = async_test(undefined);
var t = async_test();

var script = document.createElement("script");
script.src = "scripts/include-2.js?pipe=trickle(d2)";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<iframe id="myFrame"></iframe>

<script>
var t = async_test(undefined);
var t = async_test();
onload = t.step_func(function() {
var doc = document.getElementById("myFrame").contentDocument;
var win = document.getElementById("myFrame").contentWindow;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div id="log">FAILED (This TC requires JavaScript enabled)</div>

<script>
var t = async_test(undefined);
var t = async_test();
function test() {
t.step(function() {
assert_array_equals(eventOrder, ['external script #8', 'external script #9']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</script>
<script>
log("inline script #2");
var t = async_test(undefined);
var t = async_test();

addEventListener("DOMContentLoaded", t.step_func(function() {assert_array_equals(eventOrder, ["inline script #1", "inline script #2"])}), false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<div id="log"></div>
<script>
var t = async_test(undefined);
var t = async_test();
</script>
<script id="test" type="text/plain" src="scripts/include-1.js?pipe=trickle(d1)"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<div id="log"></div>
<script>
var t = async_test(undefined);
var t = async_test();
</script>
<script id="test" type="text/plain" src="scripts/include-2.js?pipe=trickle(d1)"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<div id="log"></div>
<script>
var t = async_test(undefined);
var t = async_test();
</script>
<script id="test" type="text/plain" src="scripts/include-1.js?pipe=trickle(d1)"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<div id="log"></div>
<script>
var t = async_test(undefined);
var t = async_test();
</script>
<script id="test" type="text/plain" src="scripts/include-2.js"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<div id="log"></div>
<script>
var t = async_test(undefined);
var t = async_test();
</script>
<svg>
<script>
Expand Down
Loading

0 comments on commit 59a1292

Please sign in to comment.