Skip to content

Commit

Permalink
File namechange
Browse files Browse the repository at this point in the history
  • Loading branch information
Håkan Olsson committed Jan 13, 2025
1 parent 6ab8c13 commit 492cac3
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 43 deletions.
16 changes: 8 additions & 8 deletions AwaitTopLevel/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
</p>
<h1>Select test to run:</h1>
<ul>
<li><a href="./test6.html">onLoad - await module init call</a> (Fail on all iOS browsers)</li>
<li><a href="./test7.html">initCall - await module init call</a></li>
<li><a href="./test8.html">onLoad - sleep module init call (await import())</a></li>
<li><a href="./test9.html">initCall - sleep module init call (await import())</a></li>
<li><a href="./test10.html">onLoad - sleep module init call </a> (Fail on all browsers)</li>
<li><a href="./test11.html">initCall - sleep module init call </a></li>
<li><a href="./test12.html">onLoad - syncron module init call</a></li>
<li><a href="./test13.html">initCall - syncron module init call</a></li>
<li><a href="./test1.html">onLoad - await module init call</a> (Fail on all iOS browsers)</li>
<li><a href="./test2.html">initCall - await module init call</a></li>
<li><a href="./test3.html">onLoad - sleep module init call (await import())</a></li>
<li><a href="./test4.html">initCall - sleep module init call (await import())</a></li>
<li><a href="./test5.html">onLoad - sleep module init call </a> (Fail on all browsers)</li>
<li><a href="./test6.html">initCall - sleep module init call </a></li>
<li><a href="./test7.html">onLoad - syncron module init call</a></li>
<li><a href="./test8.html">initCall - syncron module init call</a></li>
</ul>
</body>
</html>
8 changes: 4 additions & 4 deletions AwaitTopLevel/test12.html → AwaitTopLevel/test1.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>Await Top Level 7</title>
<title>Await Top Level 1</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=700, initial-scale=1.0">
<script type="module">
import * as test from './withTopLevelCall.js';
import * as test from './withTopLevelAwait.js';

const outputArea = document.getElementById("OutputArea")
function print(text) {
Expand All @@ -18,8 +18,8 @@
</script>
</head>
<body>
<h3>Await Top Level 7</h3>
<h3>Await Top Level 1</h3>
<p>Expekt string "Hello from OnLoad. IsInit true":</p>
<div id="OutputArea" style="width:800px"\>
</body>
</html>
</html>
6 changes: 3 additions & 3 deletions AwaitTopLevel/test11.html → AwaitTopLevel/test2.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>Await Top Level 6</title>
<title>Await Top Level 2</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=700, initial-scale=1.0">
<script type="module">
import * as test from './withTopLevelSleep.js';
import * as test from './withTopLevelAwait.js';

const outputArea = document.getElementById("OutputArea")
function print(text) {
Expand All @@ -16,7 +16,7 @@
</script>
</head>
<body>
<h3>Await Top Level 6</h3>
<h3>Await Top Level 2</h3>
<p>Expekt string "Hello from TopLevel. IsInit true":</p>
<div id="OutputArea" style="width:800px"\>
</body>
Expand Down
15 changes: 9 additions & 6 deletions AwaitTopLevel/test13.html → AwaitTopLevel/test3.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<title>Await Top Level 8</title>
<title>Await Top Level 3</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=700, initial-scale=1.0">
<script type="module">
import * as test from './withTopLevelCall.js';

const outputArea = document.getElementById("OutputArea")
function print(text) {
outputArea.appendChild(document.createTextNode(text));
}

print("Hello from TopLevel. IsInit " + test.getIsInit())
async function init(){
const test = await import('./withTopLevelSleep.js')
print("Hello from OnLoad. IsInit " + test.getIsInit())
}
window.onload = init

</script>
</head>
<body>
<h3>Await Top Level 8</h3>
<p>Expekt string "Hello from TopLevel. IsInit true":</p>
<h3>Await Top Level 3</h3>
<p>Expekt string "Hello from OnLoad. IsInit true":</p>
<div id="OutputArea" style="width:800px"\>
</body>
</html>
File renamed without changes.
File renamed without changes.
12 changes: 5 additions & 7 deletions AwaitTopLevel/test6.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>Await Top Level 1</title>
<title>Await Top Level 6</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=700, initial-scale=1.0">
<script type="module">
import * as test from './withTopLevelAwait.js';
import * as test from './withTopLevelSleep.js';

const outputArea = document.getElementById("OutputArea")
function print(text) {
outputArea.appendChild(document.createTextNode(text));
}

window.onload = function() {
print("Hello from OnLoad. IsInit " + test.getIsInit())
}
print("Hello from TopLevel. IsInit " + test.getIsInit())
</script>
</head>
<body>
<h3>Await Top Level 1</h3>
<p>Expekt string "Hello from OnLoad. IsInit true":</p>
<h3>Await Top Level 6</h3>
<p>Expekt string "Hello from TopLevel. IsInit true":</p>
<div id="OutputArea" style="width:800px"\>
</body>
</html>
14 changes: 8 additions & 6 deletions AwaitTopLevel/test7.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<title>Await Top Level 2</title>
<title>Await Top Level 7</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=700, initial-scale=1.0">
<script type="module">
import * as test from './withTopLevelAwait.js';
import * as test from './withTopLevelCall.js';

const outputArea = document.getElementById("OutputArea")
function print(text) {
outputArea.appendChild(document.createTextNode(text));
}

print("Hello from TopLevel. IsInit " + test.getIsInit())
window.onload = function() {
print("Hello from OnLoad. IsInit " + test.getIsInit())
}
</script>
</head>
<body>
<h3>Await Top Level 2</h3>
<p>Expekt string "Hello from TopLevel. IsInit true":</p>
<h3>Await Top Level 7</h3>
<p>Expekt string "Hello from OnLoad. IsInit true":</p>
<div id="OutputArea" style="width:800px"\>
</body>
</html>
</html>
15 changes: 6 additions & 9 deletions AwaitTopLevel/test8.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>Await Top Level 3</title>
<title>Await Top Level 8</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=700, initial-scale=1.0">
<script type="module">
import * as test from './withTopLevelCall.js';

const outputArea = document.getElementById("OutputArea")
function print(text) {
outputArea.appendChild(document.createTextNode(text));
}

async function init(){
const test = await import('./withTopLevelSleep.js')
print("Hello from OnLoad. IsInit " + test.getIsInit())
}
window.onload = init

print("Hello from TopLevel. IsInit " + test.getIsInit())
</script>
</head>
<body>
<h3>Await Top Level 3</h3>
<p>Expekt string "Hello from OnLoad. IsInit true":</p>
<h3>Await Top Level 8</h3>
<p>Expekt string "Hello from TopLevel. IsInit true":</p>
<div id="OutputArea" style="width:800px"\>
</body>
</html>

0 comments on commit 492cac3

Please sign in to comment.