Skip to content

Commit

Permalink
Remove the idl_test test_name argument (always 'idl_test setup') (#12…
Browse files Browse the repository at this point in the history
…406)

Completes what web-platform-tests/wpt#12276 started.
  • Loading branch information
foolip authored Aug 13, 2018
1 parent d31eaca commit a570eb1
Show file tree
Hide file tree
Showing 77 changed files with 89 additions and 153 deletions.
3 changes: 1 addition & 2 deletions BackgroundSync/interfaces.https.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ idl_test(
['service-workers', 'html', 'dom'],
idlArray => {
// TODO: Objects
},
'Background Sync interfaces.'
}
);
3 changes: 1 addition & 2 deletions FileAPI/idlharness.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ <h1>File API automated IDL tests</h1>
FileList: ['document.querySelector("#fileChooser").files'],
FileReader: ['new FileReader()']
});
},
'Test FileAPI IDL implementation'
}
);
</script>

Expand Down
3 changes: 1 addition & 2 deletions FileAPI/idlharness.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ idl_test(
FileReader: ['new FileReader()'],
FileReaderSync: ['new FileReaderSync()']
});
},
'Test FileAPI IDL implementation'
}
);
done();
3 changes: 1 addition & 2 deletions IndexedDB/idlharness.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ idl_test(
IDBVersionChangeEvent: ['new IDBVersionChangeEvent("type")'],
DOMStringList: [],
});
},
'IndexedDB interfaces'
}
);
3 changes: 1 addition & 2 deletions WebCryptoAPI/idlharness.https.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ idl_test(
Crypto: ['crypto'],
SubtleCrypto: ['crypto.subtle']
});
},
'WebCryptoAPI interfaces'
}
);
3 changes: 1 addition & 2 deletions accelerometer/idlharness.https.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ idl_test(
LinearAccelerationSensor: ['new LinearAccelerationSensor();'],
GravitySensor: ['new GravitySensor();']
});
},
'Test IDL implementation of Accelerometer Sensor'
}
);
3 changes: 1 addition & 2 deletions ambient-light/idlharness.https.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ idl_test(
idl_array.add_objects({
AmbientLightSensor: ['new AmbientLightSensor()']
});
},
'Test IDL implementation of Ambient Light Sensor'
}
);
3 changes: 1 addition & 2 deletions appmanifest/idlharness.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ idl_test(
Window: ['window'],
BeforeInstallPromptEvent: ['new BeforeInstallPromptEvent("type")'],
});
},
'appmanifest interfaces'
}
);
3 changes: 1 addition & 2 deletions background-fetch/idlharness.https.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ idl_test(
BackgroundFetchUpdateEvent: ['new BackgroundFetchUpdateEvent("type")'],
});
}
},
'background-fetch interfaces'
}
);
3 changes: 1 addition & 2 deletions battery-status/battery-interface-idlharness.https.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ idl_test(
})

self.manager = await navigator.getBattery();
},
'Test IDL implementation of Battery Status API'
}
);
3 changes: 1 addition & 2 deletions bluetooth/idl/idlharness.tentative.https.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ idl_test(
Bluetooth: ['navigator.bluetooth'],
BluetoothAdvertisingEvent: ['event'],
});
},
'web-bluetooth interfaces.'
}
);
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ idl_test(
idl_array.add_objects({
HTMLIFrameElement: ['document.createElement("iframe")'],
});
},
'csp-embedded-enforcement IDL'
}
);
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ idl_test(
'new SecurityPolicyViolationEvent("securitypolicyviolation")'
]
})
},
'Test Content Security Policy IDL implementation'
}
);
3 changes: 1 addition & 2 deletions cookie-store/idlharness.tentative.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
CookieStore: ['cookieStore'],
CookieChangeEvent: ['new CookieChangeEvent("change")'],
});
},
'Interface test'
}
);
</script>
4 changes: 2 additions & 2 deletions css/css-animations/idlharness.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
CSSKeyframesRule: ['keyframes'],
CSSKeyframeRule: ['keyframes.cssRules[0]'],
});
},
'Test css-animations IDL implementation');
}
);
</script>
</body>

Expand Down
3 changes: 1 addition & 2 deletions css/css-counter-styles/idlharness.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
idl_array.add_objects({
CSSCounterStyleRule: ['counter'],
});
},
'css-counter-styles interfaces'
}
);
</script>
3 changes: 1 addition & 2 deletions css/css-font-loading/idlharness.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
FontFaceSetLoadEvent: ['new FontFaceSetLoadEvent("type")'],
FontFaceSet: ['document.fonts'],
});
},
'css-font-loading interfaces'
}
);
</script>
3 changes: 1 addition & 2 deletions css/css-images/idlharness.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
['cssom'],
idl_array => {
// No objects,
},
'Test IDL implementation of css-masking'
}
);
</script>
3 changes: 1 addition & 2 deletions css/css-masking/idlharness.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
SVGClipPathElement: [document.querySelector('#clip1')],
SVGMaskElement: [document.querySelector('#mask1')],
});
},
'Test IDL implementation of css-masking'
}
);
</script>

Expand Down
3 changes: 1 addition & 2 deletions css/css-parser-api/idlharness.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
['cssom'],
idl_array => {
// No objects
},
'CSS-Parser-API interfaces'
}
);
</script>
3 changes: 1 addition & 2 deletions css/css-regions/idlharness.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
idl_array.add_objects({
Document: ['document'],
})
},
'css-regions interfaces'
}
);
</script>
3 changes: 1 addition & 2 deletions css/css-transitions/idlharness.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
HTMLElement: ['document'],
Window: ['window'],
})
},
'Test IDL implementation of css-transitions API'
}
);
</script>
3 changes: 1 addition & 2 deletions css/css-typed-om/interfaces.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
CSSPerspective: ['perspective'],
CSSMatrixComponent: ['matrix'],
});
},
'CSS Typed OM IDL test'
}
);
</script>
3 changes: 1 addition & 2 deletions css/cssom-view/interfaces.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ <h1>CSSOM View IDL tests</h1>
});

await waitForLoad;
},
'cssom-view interfaces'
}
);
</script>
3 changes: 1 addition & 2 deletions css/cssom/interfaces.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ <h1>CSSOM IDL tests</h1>
self.sheet = style_element.sheet;
self.svg_element = document.getElementById('svgElement');
self.xmlss_pi = document.getElementById('xmlssPiIframe').contentDocument.firstChild;
},
'Test driver'
}
);

</script>
3 changes: 1 addition & 2 deletions css/filter-effects/interfaces.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ idl_test(
['SVG', 'html', 'dom'],
idl_array => {
// TODO: objects
},
'Filter effects interfaces.'
}
);
4 changes: 2 additions & 2 deletions domparsing/interfaces.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ idl_test(
Range: ['new Range()'],
XMLSerializer: ['new XMLSerializer()'],
})
},
'DOM-Parsing interfaces');
}
);
3 changes: 1 addition & 2 deletions fetch/api/idl.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ idl_test(
} else if (self.GLOBAL.isWorker()) {
idl_array.add_objects({ WorkerGlobalScope: ['self'] });
}
},
'Fetch Standard IDL'
}
);
3 changes: 1 addition & 2 deletions fetch/cors-rfc1918/idlharness.tentative.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ idl_test(
Document: ['document'],
});
}
},
'Test CORS RFC1918 interfaces'
}
);
3 changes: 1 addition & 2 deletions gamepad/idlharness-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
t.step_timeout(() => { reject('Timed out waiting for gamepad'); }, 5000);
});
return Promise.race([gamepadConnected, timeout]);
},
'Test IDL implementation of Gamepad API'
}
);
</script>
3 changes: 1 addition & 2 deletions gamepad/idlharness.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ idl_test(
GamepadEvent: ['new GamepadEvent("gamepad")'],
Navigator: ['navigator']
});
},
'Test IDL implementation of Gamepad API'
}
);
4 changes: 2 additions & 2 deletions generic-sensor/idlharness.https.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ idl_test(
'new SensorErrorEvent("error", { error: new DOMException });'
],
});
},
'Test IDL implementation of Generic Sensor');
}
);
3 changes: 1 addition & 2 deletions geolocation-sensor/idlharness.https.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ idl_test(
idl_array.add_objects({
GeolocationSensor: ['new GeolocationSensor'],
});
},
'Test IDL implementation of Geolocation Sensor'
}
);
3 changes: 1 addition & 2 deletions gyroscope/idlharness.https.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ idl_test(
idl_array.add_objects({
Gyroscope: ['new Gyroscope();']
});
},
'Test IDL implementation of Gyroscope Sensor'
}
);
4 changes: 2 additions & 2 deletions html-media-capture/idlharness.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ idl_test(
});

self.input = document.createElement('input');
},
'html-media-capture interfaces.');
}
);
3 changes: 1 addition & 2 deletions html/dom/interfaces.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@ <h1>HTML IDL tests</h1>
});
idlArray.prevent_multiple_testing('HTMLElement');
await waitForLoad;
},
'html interfaces'
}
);

</script>
3 changes: 1 addition & 2 deletions keyboard-lock/idlharness.https.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ idl_test(
Navigator: ['navigator'],
Keyboard: ['navigator.keyboard'],
});
},
'keyboard-lock interfaces'
}
);
3 changes: 1 addition & 2 deletions keyboard-map/idlharness.https.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ idl_test(
});

self.layout_map = await navigator.keyboard.getLayoutMap();
},
'Test IDL implementation of Keyboard Map API'
}
);
3 changes: 1 addition & 2 deletions magnetometer/idlharness.https.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ idl_test(
Magnetometer: ['new Magnetometer();'],
UncalibratedMagnetometer: ['new UncalibratedMagnetometer();']
});
},
'Test IDL implementation of Magnetometer Sensor'
}
);
3 changes: 1 addition & 2 deletions media-capabilities/idlharness.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ promise_test(async () => {
Screen: ['screen'],
ScreenLuminance: ['screen.luminance'],
});
},
'Test IDL implementation of Media Capabilities'
}
);
});
3 changes: 1 addition & 2 deletions mediacapture-fromelement/idlharness.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@ idl_test(
HTMLCanvasElement: ['canvas'],
CanvasCaptureMediaStreamTrack: ['track'],
});
},
'Test mediacapture-fromelement IDL interfaces'
}
);
3 changes: 1 addition & 2 deletions mediacapture-image/idlharness.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ idl_test(
const track = canvas.captureStream().getVideoTracks()[0];
self.capture = new ImageCapture(track);
self.capabilities = await capture.getPhotoCapabilities();
},
'Test mediacapture-image IDL interfaces'
}
);
3 changes: 1 addition & 2 deletions mediacapture-record/idlharness.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,5 @@ idl_test(
error = new MediaRecorderErrorEvent("type", {});
} catch(e) {}
idl_array.add_objects({ MediaRecorderErrorEvent: [error] });
},
'mediastream-recording interfaces'
}
);
3 changes: 1 addition & 2 deletions mediasession/idlharness.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ idl_test(
MediaSession: ['navigator.mediaSession'],
Navigator: ['navigator']
});
},
'Test IDL implementation of Media Session'
}
);
3 changes: 1 addition & 2 deletions navigation-timing/idlharness.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ idl_test(
'performance.getEntriesByType("navigation")[0]'
]
});
},
'navigation-timing interfaces'
}
);
4 changes: 2 additions & 2 deletions netinfo/idlharness.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ idl_test(
} else {
idl_array.add_objects({ Navigator: ['navigator'] });
}
},
'netinfo interfaces.');
}
);
3 changes: 1 addition & 2 deletions orientation-sensor/idlharness.https.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ idl_test(
RelativeOrientationSensor: ['new RelativeOrientationSensor();']
});
idl_array.prevent_multiple_testing('OrientationSensor');
},
'Test IDL implementation of Orientation Sensor'
}
);
Loading

0 comments on commit a570eb1

Please sign in to comment.