Skip to content

Commit 53dfda6

Browse files
Clean up test pages
1 parent 475abc7 commit 53dfda6

File tree

3 files changed

+6
-51
lines changed

3 files changed

+6
-51
lines changed

integration-test/test-pages/runtime-checks/index.html

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,14 @@
77
</head>
88
<body>
99
<p><a href="../../index.html">[Home]</a></p>
10-
<script>
11-
function makeLinkElement (link) {
12-
const listItem = document.createElement('li')
13-
const linkElement = document.createElement('a')
14-
linkElement.href = link.href
15-
linkElement.innerText = link.text
16-
}
17-
async function init () {
18-
console.log('init')
19-
const response = await fetch('./pages.json')
20-
const pages = await response.json()
21-
const ulElement = document.querySelector('ul')
22-
for (const page of pages) {
23-
const linkElement = makeLinkElement(page)
24-
ulElement.appendChild(linkElement)
25-
}
26-
}
27-
init()
28-
</script>
2910

3011
<p>Runtime element interrogation (runtimeChecks) allows our clients the ability to validate, inspect and modify elements as they get injected into a web page by website scripts.</p>
3112
<ul>
32-
<!--
3313
<li><a href="./pages/basic-run.html">Basic Run</a> - <a href="./config/basic-run.json">Config</a></li>
3414
<li><a href="./pages/filter-props.html">Filter props</a> - <a href="./config/filter-props.json">Config</a></li>
3515
<li><a href="./pages/script-overload.html">Script overloading</a> - <a href="./config/script-overload.json">Config</a></li>
3616
<li><a href="./pages/shadow-dom.html">Shadow dom support</a> - <a href="./config/shadow-dom.json">Config</a></li>
37-
-->
17+
<li><a href="./pages/generic-overload.html">Generic overload of APIs</a> - <a href="./config/generic-overload.json">Config</a></li>
3818
</ul>
3919

4020
</body>

integration-test/test-pages/runtime-checks/pages.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

integration-test/test-pages/runtime-checks/pages/generic-overload.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
window.scriptyRan = true;
3939
let threw = false;
4040
try {
41-
localStorage.setItem('test2'); // should throw
41+
localStorage.setItem('test2'); /* should throw */
4242
} catch (e) {
4343
threw = true;
4444
}
@@ -85,15 +85,16 @@
8585
sessionStorage.clear();
8686
sessionStorage.setItem('test', 'test');
8787
sessionStorage.other = "test";
88-
let threw = false;
88+
let threw2 = false;
8989
try {
90-
sessionStorage.setItem('test2'); // should throw
90+
sessionStorage.setItem('test2'); /* should throw */
9191
} catch (e) {
92-
threw = true;
92+
threw2 = true;
9393
}
9494
window.script2Output = {
9595
item: sessionStorage.getItem('test'),
9696
other: sessionStorage.getItem('other'),
97+
threw: threw2
9798
}
9899
`)
99100
const scripty = document.querySelector('script#overloadedScript');

0 commit comments

Comments
 (0)