summaryrefslogtreecommitdiffstats
path: root/dom/html/test/imports
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /dom/html/test/imports
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'dom/html/test/imports')
-rw-r--r--dom/html/test/imports/file_CSP_sandbox.html7
-rw-r--r--dom/html/test/imports/file_CSP_sandbox_import.html9
-rw-r--r--dom/html/test/imports/file_blocking_DOMContentLoaded_A.html11
-rw-r--r--dom/html/test/imports/file_blocking_DOMContentLoaded_B.html11
-rw-r--r--dom/html/test/imports/file_blocking_DOMContentLoaded_C.html11
-rw-r--r--dom/html/test/imports/file_blocking_DOMContentLoaded_D.html10
-rw-r--r--dom/html/test/imports/file_cycle_1_A.html11
-rw-r--r--dom/html/test/imports/file_cycle_1_B.html12
-rw-r--r--dom/html/test/imports/file_cycle_1_C.html12
-rw-r--r--dom/html/test/imports/file_cycle_2_A.html11
-rw-r--r--dom/html/test/imports/file_cycle_2_B.html13
-rw-r--r--dom/html/test/imports/file_cycle_2_C.html10
-rw-r--r--dom/html/test/imports/file_cycle_2_D.html10
-rw-r--r--dom/html/test/imports/file_cycle_3_A.html11
-rw-r--r--dom/html/test/imports/file_cycle_3_B.html11
-rw-r--r--dom/html/test/imports/file_cycle_3_C.html12
-rw-r--r--dom/html/test/imports/file_cycle_4_A.html11
-rw-r--r--dom/html/test/imports/file_cycle_4_B.html11
-rw-r--r--dom/html/test/imports/file_cycle_4_C.html11
-rw-r--r--dom/html/test/imports/file_cycle_4_D.html12
-rw-r--r--dom/html/test/imports/file_cycle_4_E.html11
-rw-r--r--dom/html/test/imports/file_element_upgrade.html15
-rw-r--r--dom/html/test/imports/file_encoding.html5
-rw-r--r--dom/html/test/imports/file_importA1.html11
-rw-r--r--dom/html/test/imports/file_importA2.html10
-rw-r--r--dom/html/test/imports/file_importB1.html11
-rw-r--r--dom/html/test/imports/file_importB2.html10
-rw-r--r--dom/html/test/imports/file_importC1.html11
-rw-r--r--dom/html/test/imports/file_importC10.html11
-rw-r--r--dom/html/test/imports/file_importC2.html11
-rw-r--r--dom/html/test/imports/file_importC3.html11
-rw-r--r--dom/html/test/imports/file_importC4.html11
-rw-r--r--dom/html/test/imports/file_importC5.html11
-rw-r--r--dom/html/test/imports/file_importC6.html11
-rw-r--r--dom/html/test/imports/file_importC7.html11
-rw-r--r--dom/html/test/imports/file_importC8.html11
-rw-r--r--dom/html/test/imports/file_importC9.html11
-rw-r--r--dom/html/test/imports/file_importD.html8
-rw-r--r--dom/html/test/imports/file_importE.html11
-rw-r--r--dom/html/test/imports/file_simple_import.html4
-rw-r--r--dom/html/test/imports/mochitest.ini52
-rw-r--r--dom/html/test/imports/test_CSP_sandbox.html26
-rw-r--r--dom/html/test/imports/test_blocking_DOMContentLoaded.html36
-rw-r--r--dom/html/test/imports/test_cycle_1.html36
-rw-r--r--dom/html/test/imports/test_cycle_2.html36
-rw-r--r--dom/html/test/imports/test_cycle_3.html37
-rw-r--r--dom/html/test/imports/test_cycle_4.html37
-rw-r--r--dom/html/test/imports/test_defaultView.html31
-rw-r--r--dom/html/test/imports/test_element_upgrade.html34
-rw-r--r--dom/html/test/imports/test_encoding.html30
50 files changed, 778 insertions, 0 deletions
diff --git a/dom/html/test/imports/file_CSP_sandbox.html b/dom/html/test/imports/file_CSP_sandbox.html
new file mode 100644
index 000000000..72d3bbeb3
--- /dev/null
+++ b/dom/html/test/imports/file_CSP_sandbox.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<head>
+</head>
+<body>
+ <link rel="import" href="file_CSP_sandbox_import.html" id="import"></link>
+</body>
+
diff --git a/dom/html/test/imports/file_CSP_sandbox_import.html b/dom/html/test/imports/file_CSP_sandbox_import.html
new file mode 100644
index 000000000..33f88aecc
--- /dev/null
+++ b/dom/html/test/imports/file_CSP_sandbox_import.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<head>
+</head>
+<body>
+<script>
+ var scriptExecuted = true;
+</script>
+</body>
+
diff --git a/dom/html/test/imports/file_blocking_DOMContentLoaded_A.html b/dom/html/test/imports/file_blocking_DOMContentLoaded_A.html
new file mode 100644
index 000000000..2a18604ed
--- /dev/null
+++ b/dom/html/test/imports/file_blocking_DOMContentLoaded_A.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+ <script>
+ order.push("AS0");
+ </script>
+ <link rel="import" href="file_blocking_DOMContentLoaded_B.html" onload="loaded()" onerror="failed()"></link>
+</head>
+<body>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_blocking_DOMContentLoaded_B.html b/dom/html/test/imports/file_blocking_DOMContentLoaded_B.html
new file mode 100644
index 000000000..a69a38d16
--- /dev/null
+++ b/dom/html/test/imports/file_blocking_DOMContentLoaded_B.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+ <script>
+ order.push("BS0");
+ </script>
+ <link rel="import" href="file_blocking_DOMContentLoaded_C.html" onload="loaded()" onerror="failed()"></link>
+</head>
+<body>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_blocking_DOMContentLoaded_C.html b/dom/html/test/imports/file_blocking_DOMContentLoaded_C.html
new file mode 100644
index 000000000..76719b1b2
--- /dev/null
+++ b/dom/html/test/imports/file_blocking_DOMContentLoaded_C.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+ <script>
+ order.push("CS0");
+ </script>
+ <link rel="import" href="file_blocking_DOMContentLoaded_D.html" onload="loaded()" onerror="failed()"></link>
+</head>
+<body>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_blocking_DOMContentLoaded_D.html b/dom/html/test/imports/file_blocking_DOMContentLoaded_D.html
new file mode 100644
index 000000000..0ae10e702
--- /dev/null
+++ b/dom/html/test/imports/file_blocking_DOMContentLoaded_D.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+ <script>
+ order.push("DS0");
+ </script>
+</head>
+<body>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_cycle_1_A.html b/dom/html/test/imports/file_cycle_1_A.html
new file mode 100644
index 000000000..17f2499d9
--- /dev/null
+++ b/dom/html/test/imports/file_cycle_1_A.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+ <link rel="import" href="file_cycle_1_B.html" onload="loaded()" onerror="failed()"></link>
+</head>
+<body>
+ <script>
+ order.push("A");
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_cycle_1_B.html b/dom/html/test/imports/file_cycle_1_B.html
new file mode 100644
index 000000000..a7d77c823
--- /dev/null
+++ b/dom/html/test/imports/file_cycle_1_B.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+ <link rel="import" href="file_cycle_1_C.html" onload="loaded()" onerror="failed()"></link>
+ <link rel="import" href="file_cycle_1_A.html" onload="loaded()" onerror="failed()"></link>
+</head>
+<body>
+ <script>
+ order.push("B");
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_cycle_1_C.html b/dom/html/test/imports/file_cycle_1_C.html
new file mode 100644
index 000000000..0c563c6ce
--- /dev/null
+++ b/dom/html/test/imports/file_cycle_1_C.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+ <link rel="import" href="file_cycle_1_B.html" onload="loaded()" onerror="failed()"></link>
+ <link rel="import" href="file_cycle_1_A.html" onload="loaded()" onerror="failed()"></link>
+</head>
+<body>
+ <script>
+ order.push("C");
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_cycle_2_A.html b/dom/html/test/imports/file_cycle_2_A.html
new file mode 100644
index 000000000..5e4b6bfd3
--- /dev/null
+++ b/dom/html/test/imports/file_cycle_2_A.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+ <link rel="import" href="file_cycle_2_B.html" onload="loaded()" onerror="failed()"></link>
+</head>
+<body>
+ <script>
+ order.push("A");
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_cycle_2_B.html b/dom/html/test/imports/file_cycle_2_B.html
new file mode 100644
index 000000000..ed5c4acf6
--- /dev/null
+++ b/dom/html/test/imports/file_cycle_2_B.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+ <link rel="import" href="file_cycle_2_A.html" onload="loaded()" onerror="failed()"></link>
+ <link rel="import" href="file_cycle_2_C.html" onload="loaded()" onerror="failed()"></link>
+ <link rel="import" href="file_cycle_2_D.html" onload="loaded()" onerror="failed()"></link>
+</head>
+<body>
+ <script>
+ order.push("B");
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_cycle_2_C.html b/dom/html/test/imports/file_cycle_2_C.html
new file mode 100644
index 000000000..4492c068a
--- /dev/null
+++ b/dom/html/test/imports/file_cycle_2_C.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+</head>
+<body>
+ <script>
+ order.push("C");
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_cycle_2_D.html b/dom/html/test/imports/file_cycle_2_D.html
new file mode 100644
index 000000000..eae5280e0
--- /dev/null
+++ b/dom/html/test/imports/file_cycle_2_D.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+</head>
+<body>
+ <script>
+ order.push("D");
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_cycle_3_A.html b/dom/html/test/imports/file_cycle_3_A.html
new file mode 100644
index 000000000..bc2a31d1c
--- /dev/null
+++ b/dom/html/test/imports/file_cycle_3_A.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+ <link rel="import" href="file_cycle_3_C.html" onload="loaded()" onerror="failed()"></link>
+</head>
+<body>
+ <script>
+ order.push("A");
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_cycle_3_B.html b/dom/html/test/imports/file_cycle_3_B.html
new file mode 100644
index 000000000..19d51a6ed
--- /dev/null
+++ b/dom/html/test/imports/file_cycle_3_B.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+ <link rel="import" href="file_cycle_3_C.html" onload="loaded()" onerror="failed()"></link>
+</head>
+<body>
+ <script>
+ order.push("B");
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_cycle_3_C.html b/dom/html/test/imports/file_cycle_3_C.html
new file mode 100644
index 000000000..4b391c683
--- /dev/null
+++ b/dom/html/test/imports/file_cycle_3_C.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+ <link rel="import" href="file_cycle_3_A.html" onload="loaded()" onerror="failed()"></link>
+ <link rel="import" href="file_cycle_3_B.html" onload="loaded()" onerror="failed()"></link>
+</head>
+<body>
+ <script>
+ order.push("C");
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_cycle_4_A.html b/dom/html/test/imports/file_cycle_4_A.html
new file mode 100644
index 000000000..0668bdf80
--- /dev/null
+++ b/dom/html/test/imports/file_cycle_4_A.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+ <link rel="import" href="file_cycle_4_B.html" onload="loaded()" onerror="failed()"></link>
+</head>
+<body>
+ <script>
+ order.push("A");
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_cycle_4_B.html b/dom/html/test/imports/file_cycle_4_B.html
new file mode 100644
index 000000000..596e5c3e7
--- /dev/null
+++ b/dom/html/test/imports/file_cycle_4_B.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+ <link rel="import" href="file_cycle_4_C.html" onload="loaded()" onerror="failed()"></link>
+</head>
+<body>
+ <script>
+ order.push("B");
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_cycle_4_C.html b/dom/html/test/imports/file_cycle_4_C.html
new file mode 100644
index 000000000..7c676e85c
--- /dev/null
+++ b/dom/html/test/imports/file_cycle_4_C.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+ <link rel="import" href="file_cycle_4_D.html" onload="loaded()" onerror="failed()"></link>
+</head>
+<body>
+ <script>
+ order.push("C");
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_cycle_4_D.html b/dom/html/test/imports/file_cycle_4_D.html
new file mode 100644
index 000000000..31ae5de32
--- /dev/null
+++ b/dom/html/test/imports/file_cycle_4_D.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+ <link rel="import" href="file_cycle_4_B.html" onload="loaded()" onerror="failed()"></link>
+ <link rel="import" href="file_cycle_4_E.html" onload="loaded()" onerror="failed()"></link>
+</head>
+<body>
+ <script>
+ order.push("D");
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_cycle_4_E.html b/dom/html/test/imports/file_cycle_4_E.html
new file mode 100644
index 000000000..42cd3c296
--- /dev/null
+++ b/dom/html/test/imports/file_cycle_4_E.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+ <link rel="import" href="file_cycle_4_C.html" onload="loaded()" onerror="failed()"></link>
+</head>
+<body>
+ <script>
+ order.push("E");
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_element_upgrade.html b/dom/html/test/imports/file_element_upgrade.html
new file mode 100644
index 000000000..b41bd0a42
--- /dev/null
+++ b/dom/html/test/imports/file_element_upgrade.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html lang="en-US">
+<head>
+</head>
+<body>
+ <x-foo></x-foo>
+ <script>
+ var prototype = Object.create(HTMLElement.prototype);
+ prototype.createdCallback = function() {
+ createdCallbackCalled = true;
+ }
+ document.registerElement('x-foo', {prototype: prototype});
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/file_encoding.html b/dom/html/test/imports/file_encoding.html
new file mode 100644
index 000000000..d97bb0437
--- /dev/null
+++ b/dom/html/test/imports/file_encoding.html
@@ -0,0 +1,5 @@
+<!DOCTYPE html>
+<head>
+<meta charset="EUC-KR">
+</head>
+<body>Ignore my encoding</body> \ No newline at end of file
diff --git a/dom/html/test/imports/file_importA1.html b/dom/html/test/imports/file_importA1.html
new file mode 100644
index 000000000..ecce6f061
--- /dev/null
+++ b/dom/html/test/imports/file_importA1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+ <head>
+ <link rel="import" href="file_importA2.html" id="A2" onload="loaded()" onerror="failed()"></link>
+ </head>
+ <body>
+ <script>
+ order.push("A1");
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/dom/html/test/imports/file_importA2.html b/dom/html/test/imports/file_importA2.html
new file mode 100644
index 000000000..d03e80a4b
--- /dev/null
+++ b/dom/html/test/imports/file_importA2.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html lang="en-US">
+ <head>
+ </head>
+ <body>
+ <script>
+ order.push("A2");
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/dom/html/test/imports/file_importB1.html b/dom/html/test/imports/file_importB1.html
new file mode 100644
index 000000000..82fb55f9f
--- /dev/null
+++ b/dom/html/test/imports/file_importB1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+ <head>
+ <link rel="import" href="file_importB2.html" id="B2" onload="loaded()" onerror="failed()"></link>
+ </head>
+ <body>
+ <script>
+ order.push("B1");
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/dom/html/test/imports/file_importB2.html b/dom/html/test/imports/file_importB2.html
new file mode 100644
index 000000000..01b6cc215
--- /dev/null
+++ b/dom/html/test/imports/file_importB2.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html lang="en-US">
+ <head>
+ </head>
+ <body>
+ <script>
+ order.push("B2");
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/dom/html/test/imports/file_importC1.html b/dom/html/test/imports/file_importC1.html
new file mode 100644
index 000000000..9ac117e65
--- /dev/null
+++ b/dom/html/test/imports/file_importC1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+ <head>
+ <link rel="import" href="file_importC2.html" onload="loaded()" onerror="failed()"></link>
+ </head>
+ <body>
+ <script>
+ order.push("C1");
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/dom/html/test/imports/file_importC10.html b/dom/html/test/imports/file_importC10.html
new file mode 100644
index 000000000..801d0f085
--- /dev/null
+++ b/dom/html/test/imports/file_importC10.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+ <head>
+ <link rel="import" href="file_importE.html" onload="loaded()" onerror="failed()"></link>
+ </head>
+ <body>
+ <script>
+ order.push("C10");
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/dom/html/test/imports/file_importC2.html b/dom/html/test/imports/file_importC2.html
new file mode 100644
index 000000000..f0193be44
--- /dev/null
+++ b/dom/html/test/imports/file_importC2.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+ <head>
+ <link rel="import" href="file_importC3.html" onload="loaded()" onerror="failed()"></link>
+ </head>
+ <body>
+ <script>
+ order.push("C2");
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/dom/html/test/imports/file_importC3.html b/dom/html/test/imports/file_importC3.html
new file mode 100644
index 000000000..eb942b707
--- /dev/null
+++ b/dom/html/test/imports/file_importC3.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+ <head>
+ <link rel="import" href="file_importC4.html" onload="loaded()" onerror="failed()"></link>
+ </head>
+ <body>
+ <script>
+ order.push("C3");
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/dom/html/test/imports/file_importC4.html b/dom/html/test/imports/file_importC4.html
new file mode 100644
index 000000000..5a172772a
--- /dev/null
+++ b/dom/html/test/imports/file_importC4.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+ <head>
+ <link rel="import" href="file_importC5.html" onload="loaded()" onerror="failed()"></link>
+ </head>
+ <body>
+ <script>
+ order.push("C4");
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/dom/html/test/imports/file_importC5.html b/dom/html/test/imports/file_importC5.html
new file mode 100644
index 000000000..c29dc24ba
--- /dev/null
+++ b/dom/html/test/imports/file_importC5.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+ <head>
+ <link rel="import" href="file_importC6.html" onload="loaded()" onerror="failed()"></link>
+ </head>
+ <body>
+ <script>
+ order.push("C5");
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/dom/html/test/imports/file_importC6.html b/dom/html/test/imports/file_importC6.html
new file mode 100644
index 000000000..a53b62bb4
--- /dev/null
+++ b/dom/html/test/imports/file_importC6.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+ <head>
+ <link rel="import" href="file_importC7.html" onload="loaded()" onerror="failed()"></link>
+ </head>
+ <body>
+ <script>
+ order.push("C6");
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/dom/html/test/imports/file_importC7.html b/dom/html/test/imports/file_importC7.html
new file mode 100644
index 000000000..1c7d60114
--- /dev/null
+++ b/dom/html/test/imports/file_importC7.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+ <head>
+ <link rel="import" href="file_importC8.html" onload="loaded()" onerror="failed()"></link>
+ </head>
+ <body>
+ <script>
+ order.push("C7");
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/dom/html/test/imports/file_importC8.html b/dom/html/test/imports/file_importC8.html
new file mode 100644
index 000000000..04bef617d
--- /dev/null
+++ b/dom/html/test/imports/file_importC8.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+ <head>
+ <link rel="import" href="file_importC9.html" onload="loaded()" onerror="failed()"></link>
+ </head>
+ <body>
+ <script>
+ order.push("C8");
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/dom/html/test/imports/file_importC9.html b/dom/html/test/imports/file_importC9.html
new file mode 100644
index 000000000..1a2749755
--- /dev/null
+++ b/dom/html/test/imports/file_importC9.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+ <head>
+ <link rel="import" href="file_importC10.html" onload="loaded()" onerror="failed()"></link>
+ </head>
+ <body>
+ <script>
+ order.push("C9");
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/dom/html/test/imports/file_importD.html b/dom/html/test/imports/file_importD.html
new file mode 100644
index 000000000..a4fbda536
--- /dev/null
+++ b/dom/html/test/imports/file_importD.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html lang="en-US">
+ <body>
+ <script>
+ order.push("D");
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/dom/html/test/imports/file_importE.html b/dom/html/test/imports/file_importE.html
new file mode 100644
index 000000000..6a8792acf
--- /dev/null
+++ b/dom/html/test/imports/file_importE.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en-US">
+ <head>
+ <link rel="import" href="file_importD.html" onload="loaded()" onerror="failed()"></link>
+ </head>
+ <body>
+ <script>
+ order.push("E");
+ </script>
+ </body>
+</html> \ No newline at end of file
diff --git a/dom/html/test/imports/file_simple_import.html b/dom/html/test/imports/file_simple_import.html
new file mode 100644
index 000000000..d9358bc38
--- /dev/null
+++ b/dom/html/test/imports/file_simple_import.html
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<head>
+</head>
+<body>Simple import</body> \ No newline at end of file
diff --git a/dom/html/test/imports/mochitest.ini b/dom/html/test/imports/mochitest.ini
new file mode 100644
index 000000000..88ad3a6f5
--- /dev/null
+++ b/dom/html/test/imports/mochitest.ini
@@ -0,0 +1,52 @@
+[DEFAULT]
+support-files =
+ file_importA1.html
+ file_importA2.html
+ file_importB1.html
+ file_importB2.html
+ file_importC1.html
+ file_importC2.html
+ file_importC3.html
+ file_importC4.html
+ file_importC5.html
+ file_importC6.html
+ file_importC7.html
+ file_importC8.html
+ file_importC9.html
+ file_importC10.html
+ file_importD.html
+ file_importE.html
+ file_cycle_1_A.html
+ file_cycle_1_B.html
+ file_cycle_1_C.html
+ file_cycle_2_A.html
+ file_cycle_2_B.html
+ file_cycle_2_C.html
+ file_cycle_2_D.html
+ file_cycle_3_A.html
+ file_cycle_3_B.html
+ file_cycle_3_C.html
+ file_cycle_4_A.html
+ file_cycle_4_B.html
+ file_cycle_4_C.html
+ file_cycle_4_D.html
+ file_cycle_4_E.html
+ file_encoding.html
+ file_simple_import.html
+ file_blocking_DOMContentLoaded_A.html
+ file_blocking_DOMContentLoaded_B.html
+ file_blocking_DOMContentLoaded_C.html
+ file_blocking_DOMContentLoaded_D.html
+ file_element_upgrade.html
+ file_CSP_sandbox.html
+ file_CSP_sandbox_import.html
+
+[test_cycle_1.html]
+[test_cycle_2.html]
+[test_cycle_3.html]
+[test_cycle_4.html]
+[test_blocking_DOMContentLoaded.html]
+[test_encoding.html]
+[test_defaultView.html]
+[test_element_upgrade.html]
+[test_CSP_sandbox.html]
diff --git a/dom/html/test/imports/test_CSP_sandbox.html b/dom/html/test/imports/test_CSP_sandbox.html
new file mode 100644
index 000000000..c1df21289
--- /dev/null
+++ b/dom/html/test/imports/test_CSP_sandbox.html
@@ -0,0 +1,26 @@
+<!DOCTYPE HTML>
+<html>
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=1106713
+-->
+<head>
+ <title>Test for Bug 1106713</title>
+ <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
+ <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+</head>
+<body>
+ <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1106713">Mozilla Bug 1106713</a>
+ <script type="text/javascript">
+ SimpleTest.waitForExplicitFinish();
+ function go() {
+ var ifr = document.getElementById('iframe1').contentWindow;
+ ok(!ifr.scriptExecuted, "script is not allowed to run");
+ SimpleTest.finish();
+ }
+
+ </script>
+ <iframe src='file_CSP_sandbox.html' sandbox="allow-same-origin" onload="go()" id="iframe1"></iframe>
+</body>
+</html>
+
diff --git a/dom/html/test/imports/test_blocking_DOMContentLoaded.html b/dom/html/test/imports/test_blocking_DOMContentLoaded.html
new file mode 100644
index 000000000..9fa32e5ca
--- /dev/null
+++ b/dom/html/test/imports/test_blocking_DOMContentLoaded.html
@@ -0,0 +1,36 @@
+<!DOCTYPE HTML>
+<html>
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=1093028
+-->
+<head>
+ <title>Test for Bug 1093028</title>
+ <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
+ <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+</head>
+<body>
+ <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1093028">Mozilla Bug 1093028</a>
+ <script type="text/javascript">
+ SimpleTest.waitForExplicitFinish();
+ var counter = 0;
+ var fcounter = 0;
+ var order = [];
+ function loaded() {
+ counter++;
+ }
+ function failed() {
+ fcounter++;
+ }
+ </script>
+ <link rel="import" href="file_blocking_DOMContentLoaded_A.html" onload="loaded()" onerror="failed()"></link>
+ <script type="text/javascript">
+ is(counter, 4, "Imports are loaded");
+ is(fcounter, 0, "No error in imports");
+ var expected = ["AS0","BS0","CS0","DS0"];
+ for (i in expected)
+ is(order[i], expected[i], "import " + i + " should be " + expected[i]);
+ SimpleTest.finish();
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/test_cycle_1.html b/dom/html/test/imports/test_cycle_1.html
new file mode 100644
index 000000000..5d170a7de
--- /dev/null
+++ b/dom/html/test/imports/test_cycle_1.html
@@ -0,0 +1,36 @@
+<!DOCTYPE HTML>
+<html>
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=1061469
+-->
+<head>
+ <title>Test for Bug 1061469</title>
+ <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
+ <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+</head>
+<body>
+ <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1061469">Mozilla Bug 1061469</a>
+ <script type="text/javascript">
+ SimpleTest.waitForExplicitFinish();
+ var counter = 0;
+ var fcounter = 0;
+ var order = [];
+ function loaded() {
+ counter++;
+ }
+ function failed() {
+ fcounter++;
+ }
+ </script>
+ <link rel="import" href="file_cycle_1_A.html" onload="loaded()" onerror="failed()"></link>
+ <script type="text/javascript">
+ is(counter, 6, "Imports are loaded");
+ is(fcounter, 0, "No error in imports");
+ var expected = ["C","B","A"];
+ for (i in expected)
+ is(order[i], expected[i], "import " + i + " should be " + expected[i]);
+ SimpleTest.finish();
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/test_cycle_2.html b/dom/html/test/imports/test_cycle_2.html
new file mode 100644
index 000000000..23daa5953
--- /dev/null
+++ b/dom/html/test/imports/test_cycle_2.html
@@ -0,0 +1,36 @@
+<!DOCTYPE HTML>
+<html>
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=1061469
+-->
+<head>
+ <title>Test for Bug 1061469</title>
+ <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
+ <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+</head>
+<body>
+ <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1061469">Mozilla Bug 1061469</a>
+ <script type="text/javascript">
+ SimpleTest.waitForExplicitFinish();
+ var counter = 0;
+ var fcounter = 0;
+ var order = [];
+ function loaded() {
+ counter++;
+ }
+ function failed() {
+ fcounter++;
+ }
+ </script>
+ <link rel="import" href="file_cycle_2_A.html" onload="loaded()" onerror="failed()"></link>
+ <script type="text/javascript">
+ is(counter, 5, "Imports are loaded");
+ is(fcounter, 0, "No error in imports");
+ var expected = ["C","D","B","A"];
+ for (i in expected)
+ is(order[i], expected[i], "import " + i + " should be " + expected[i]);
+ SimpleTest.finish();
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/test_cycle_3.html b/dom/html/test/imports/test_cycle_3.html
new file mode 100644
index 000000000..8db664601
--- /dev/null
+++ b/dom/html/test/imports/test_cycle_3.html
@@ -0,0 +1,37 @@
+<!DOCTYPE HTML>
+<html>
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=1061469
+-->
+<head>
+ <title>Test for Bug 1061469</title>
+ <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
+ <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+</head>
+<body>
+ <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1061469">Mozilla Bug 1061469</a>
+ <script type="text/javascript">
+ SimpleTest.waitForExplicitFinish();
+ var counter = 0;
+ var fcounter = 0;
+ var order = [];
+ function loaded() {
+ counter++;
+ }
+ function failed() {
+ fcounter++;
+ }
+ </script>
+ <link rel="import" href="file_cycle_3_A.html" onload="loaded()" onerror="failed()"></link>
+ <link rel="import" href="file_cycle_3_B.html" onload="loaded()" onerror="failed()"></link>
+ <script type="text/javascript">
+ is(counter, 6, "Imports are loaded");
+ is(fcounter, 0, "No error in imports");
+ var expected = ["B","C","A"];
+ for (i in expected)
+ is(order[i], expected[i], "import " + i + " should be " + expected[i]);
+ SimpleTest.finish();
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/test_cycle_4.html b/dom/html/test/imports/test_cycle_4.html
new file mode 100644
index 000000000..441ffbac8
--- /dev/null
+++ b/dom/html/test/imports/test_cycle_4.html
@@ -0,0 +1,37 @@
+<!DOCTYPE HTML>
+<html>
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=1061469
+-->
+<head>
+ <title>Test for Bug 1061469</title>
+ <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
+ <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+</head>
+<body>
+ <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1061469">Mozilla Bug 1061469</a>
+ <script type="text/javascript">
+ SimpleTest.waitForExplicitFinish();
+ var counter = 0;
+ var fcounter = 0;
+ var order = [];
+ function loaded() {
+ counter++;
+ }
+ function failed() {
+ fcounter++;
+ }
+ </script>
+ <link rel="import" href="file_cycle_4_A.html" onload="loaded()" onerror="failed()"></link>
+ <link rel="import" href="file_cycle_4_D.html" onload="loaded()" onerror="failed()"></link>
+ <script type="text/javascript">
+ is(counter, 8, "Imports are loaded");
+ is(fcounter, 0, "No error in imports");
+ var expected = ["E","D","C","B","A"];
+ for (i in expected)
+ is(order[i], expected[i], "import " + i + " should be " + expected[i]);
+ SimpleTest.finish();
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/test_defaultView.html b/dom/html/test/imports/test_defaultView.html
new file mode 100644
index 000000000..5f9c02bd8
--- /dev/null
+++ b/dom/html/test/imports/test_defaultView.html
@@ -0,0 +1,31 @@
+<!DOCTYPE HTML>
+<html>
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=1061469
+-->
+<head>
+ <title>Test for Bug 1061469</title>
+ <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
+ <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+</head>
+<body>
+ <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1061469">Mozilla Bug 1061469</a>
+ <script type="text/javascript">
+ SimpleTest.waitForExplicitFinish();
+ var success = false;
+ function loaded() {
+ success = true;
+ }
+ function failed() {
+ ok(false, "Import loading failed");
+ }
+ </script>
+ <link rel="import" href="file_simple_import.html" id="import" onload="loaded()" onerror="failed()"></link>
+ <script type="text/javascript">
+ document.defaultView;
+ is(document.getElementById("import").import.defaultView, null, "defaultView is always null for imports");
+ SimpleTest.finish();
+ </script>
+</body>
+</html> \ No newline at end of file
diff --git a/dom/html/test/imports/test_element_upgrade.html b/dom/html/test/imports/test_element_upgrade.html
new file mode 100644
index 000000000..006d56d35
--- /dev/null
+++ b/dom/html/test/imports/test_element_upgrade.html
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML>
+<html>
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=1081107
+-->
+<head>
+ <title>Test for Bug 1081107</title>
+ <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
+ <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+</head>
+<body>
+ <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1081107">Mozilla Bug 1081107</a>
+ <script type="text/javascript">
+ SimpleTest.waitForExplicitFinish();
+ var counter = 0;
+ var fcounter = 0;
+ var createdCallbackCalled = false;
+ function loaded() {
+ counter++;
+ }
+ function failed() {
+ fcounter++;
+ }
+ </script>
+ <link rel="import" href="file_element_upgrade.html" onload="loaded()" onerror="failed()"></link>
+ <script type="text/javascript">
+ is(counter, 1, "Imports are loaded");
+ is(fcounter, 0, "No error in imports");
+ ok(createdCallbackCalled, "custom element in import has been upgraded");
+ SimpleTest.finish();
+ </script>
+</body>
+</html>
diff --git a/dom/html/test/imports/test_encoding.html b/dom/html/test/imports/test_encoding.html
new file mode 100644
index 000000000..fa4033f20
--- /dev/null
+++ b/dom/html/test/imports/test_encoding.html
@@ -0,0 +1,30 @@
+<!DOCTYPE HTML>
+<html>
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=1061469
+-->
+<head>
+ <title>Test for Bug 1061469</title>
+ <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
+ <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+</head>
+<body>
+ <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1061469">Mozilla Bug 1061469</a>
+ <script type="text/javascript">
+ SimpleTest.waitForExplicitFinish();
+ var success = false;
+ function loaded() {
+ success = true;
+ }
+ function failed() {
+ ok(false, "Import loading failed");
+ }
+ </script>
+ <link rel="import" href="file_encoding.html" id="import" onload="loaded()" onerror="failed()"></link>
+ <script type="text/javascript">
+ is(document.getElementById("import").import.characterSet, "UTF-8", "characterSet should be UTF-8 for imports");
+ SimpleTest.finish();
+ </script>
+</body>
+</html> \ No newline at end of file