1 | <!DOCTYPE html>
|
2 | <html>
|
3 |
|
4 | <head>
|
5 | <script src="../tachyon.js" defer></script>
|
6 | <link rel="shortcut icon" href="#">
|
7 | <script src="./driver.js"></script>
|
8 | <title>Same Origin</title>
|
9 |
|
10 | </head>
|
11 |
|
12 |
|
13 | <body data-tachyon-same-origin>
|
14 | <h1>Tachyon</h1>
|
15 | <h2>Local test suite</h2>
|
16 |
|
17 | <ul id="myList">
|
18 | <a href="https://CNN.com">CNN</a>
|
19 | <a href="https://facebook.com">Facebook</a>
|
20 | </ul>
|
21 |
|
22 | <p>Click "Append" to append an item to the end of the list:</p>
|
23 |
|
24 | <button onclick="append()">Append</button>
|
25 | <button onclick="appendNonAnchor()">Append Non-Anchor</button>
|
26 | <button onclick="multipleDomChanges()">Append Multiple Anchors</button>
|
27 | <button onclick="whitelistedAnchor()">Append White/Blacklisted Anchor</button>
|
28 | <button onclick="sameOrigin()">Append Same Origin Anchor</button>
|
29 | <button onclick="updateDomDelay()">Update DOM in 3 seconds</button>
|
30 | <button onclick="noHref()">HREFless</button>
|
31 |
|
32 | <h3>Environment Settings:</h3>
|
33 |
|
34 | <button onclick="changePage('whitelist-sameorigin.html')">Toggle Whitelist</button>
|
35 | <button onclick="changePage('index.html')">Toggle Same-Origin</button>
|
36 |
|
37 | <br>
|
38 |
|
39 | <h3>Environment Variables:</h3>
|
40 | <div style="display: inline-flex;width: 100%;">
|
41 | <p style="margin: 10px;" id="sameOriginEnv">Same-Origin: Enabled</p>
|
42 | <p style="margin: 10px;" id="whitelistEnv">Whitelist: Disabled</p>
|
43 | <p style="margin: 10px;" id="blacklistEnv">Blacklist: Enabled</p>
|
44 | </div>
|
45 |
|
46 | </body>
|
47 |
|
48 | </html> |
\ | No newline at end of file |