mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 4657e102531b29ebfbf73b547693288c51c8b8c0
This commit is contained in:
parent
c449cbb8ea
commit
ecabb8b521
19 changed files with 777 additions and 272 deletions
|
@ -7,7 +7,7 @@
|
|||
//
|
||||
// --enable-blink-features=MojoJS,MojoJSTest
|
||||
let loadChromiumResources = Promise.resolve().then(() => {
|
||||
if (!MojoInterfaceInterceptor) {
|
||||
if (!window.MojoInterfaceInterceptor) {
|
||||
// Do nothing on non-Chromium-based browsers or when the Mojo bindings are
|
||||
// not present in the global namespace.
|
||||
return;
|
||||
|
@ -37,7 +37,10 @@ async function initialize_generic_sensor_tests() {
|
|||
if (typeof GenericSensorTest === 'undefined') {
|
||||
await loadChromiumResources;
|
||||
}
|
||||
assert_true(typeof GenericSensorTest !== 'undefined');
|
||||
assert_true(
|
||||
typeof GenericSensorTest !== 'undefined',
|
||||
'Mojo testing interface is not available.'
|
||||
);
|
||||
let sensorTest = new GenericSensorTest();
|
||||
await sensorTest.initialize();
|
||||
return sensorTest;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue