Bug 1884032 [wpt PR 44942] - [css-color] add missing colorscheme-aware tests, a=testonly
[gecko.git] / dom / serviceworkers / test / file_js_cache_save_after_load.js
blob7f5a20b52438ab028897b8d32e999d50ab288aea
1 function send_ping() {
2   window.dispatchEvent(new Event("ping"));
4 send_ping(); // ping (=1)
6 window.addEventListener("load", function () {
7   send_ping(); // ping (=2)
9   // Append a script which should call |foo|, before the encoding of this script
10   // bytecode.
11   var script = document.createElement("script");
12   script.type = "text/javascript";
13   script.innerText = "send_ping();"; // ping (=3)
14   document.head.appendChild(script);
15 });