summaryrefslogtreecommitdiffstats
path: root/dom/worklet/tests/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/worklet/tests/common.js')
-rw-r--r--dom/worklet/tests/common.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/dom/worklet/tests/common.js b/dom/worklet/tests/common.js
new file mode 100644
index 000000000..9d70f6aa7
--- /dev/null
+++ b/dom/worklet/tests/common.js
@@ -0,0 +1,14 @@
+function loadTest(file) {
+ var iframe = document.createElement('iframe');
+ iframe.src = file;
+
+ document.body.appendChild(iframe);
+}
+
+function setupTest() {
+ window.SimpleTest = parent.SimpleTest;
+ window.is = parent.is;
+ window.isnot = parent.isnot;
+ window.ok = parent.ok;
+ window.info = parent.info;
+}