summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/resources/test-only-api.m.js
blob: 984f635abac00272304c78f2f5bb99b397b27523 (plain)
1
2
3
4
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;