diff options
Diffstat (limited to 'browser/extensions/webcompat/tests/browser/shims_test.html')
-rw-r--r-- | browser/extensions/webcompat/tests/browser/shims_test.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/browser/extensions/webcompat/tests/browser/shims_test.html b/browser/extensions/webcompat/tests/browser/shims_test.html new file mode 100644 index 0000000000..ebe877316d --- /dev/null +++ b/browser/extensions/webcompat/tests/browser/shims_test.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf8" /> + <script> + window.shimPromise = new Promise(resolve => { + window.shimPromiseResolve = resolve; + }); + window.optInPromise = new Promise(resolve => { + window.optInPromiseResolve = resolve; + }); + </script> + <script + onerror="window.shimPromiseResolve('error')" + src="shims_test.js" + ></script> + </head> + <body> + <div id="shims"></div> + </body> +</html> |