summaryrefslogtreecommitdiffstats
path: root/test/wpt/tests/resources/test-only-api.m.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/wpt/tests/resources/test-only-api.m.js')
-rw-r--r--test/wpt/tests/resources/test-only-api.m.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/wpt/tests/resources/test-only-api.m.js b/test/wpt/tests/resources/test-only-api.m.js
new file mode 100644
index 0000000..984f635
--- /dev/null
+++ b/test/wpt/tests/resources/test-only-api.m.js
@@ -0,0 +1,5 @@
+/* Whether the browser is Chromium-based with MojoJS enabled */
+export const isChromiumBased = 'MojoInterfaceInterceptor' in self;
+
+/* Whether the browser is WebKit-based with internal test-only API enabled */
+export const isWebKitBased = !isChromiumBased && 'internals' in self;