Update web-platform-tests to revision 58b72393db0bd273bb93268c33666cf893feb985

This commit is contained in:
Josh Matthews 2017-10-31 08:58:31 -04:00
parent 43a4f01647
commit 64e0a52537
12717 changed files with 59835 additions and 59820 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,2 +1,2 @@
local: 1b73cf33525afbbe2d077554d1965b74ef9ae5e3
upstream: 3922fb3e43b75d2ff118a5ebf793180f570fdb53
local: 43a4f016471d1e1d6b4072f9dd8cf3b8f9dfe48c
upstream: 58b72393db0bd273bb93268c33666cf893feb985

View file

@ -108,6 +108,15 @@ And on macOS with homebrew using:
brew install nss
```
On other platforms, download the firefox archive and common.tests.zip
archive for your platform from
[https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/](Mozilla CI)
Then extract `certutil[.exe]` from the tests.zip package and
`libnss3[.so|.dll|.dynlib]` and put the former on your path and the latter on
your library path.
Command Line Tools
==================

View file

@ -8,60 +8,32 @@
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
<div id="log"></div>
<script id="idl" type="text/plain">
interface EventTarget {
};
interface EventHandler {
};
</script>
<script id="accelerometer-idl" type="text/plain">
// The interface of Sensor is defined in
// https://www.w3.org/TR/generic-sensor/#idl-index
[SecureContext, Exposed=Window]
interface Sensor : EventTarget {
readonly attribute boolean activated;
readonly attribute boolean hasReading;
readonly attribute DOMHighResTimeStamp? timestamp;
void start();
void stop();
attribute EventHandler onreading;
attribute EventHandler onactivate;
attribute EventHandler onerror;
};
[Constructor(optional SensorOptions options), Exposed=Window]
interface Accelerometer : Sensor {
readonly attribute double? x;
readonly attribute double? y;
readonly attribute double? z;
};
[Constructor(optional SensorOptions options), Exposed=Window]
interface LinearAccelerationSensor : Accelerometer {
};
[Constructor(optional SensorOptions options), Exposed=Window]
interface GravitySensor : Accelerometer {
};
</script>
<script>
(() => {
"use strict";
let idl_array = new IdlArray();
idl_array.add_untested_idls(document.getElementById('idl').textContent);
idl_array.add_idls(document.getElementById('accelerometer-idl').textContent);
"use strict";
function doTest([dom, generic_sensor, accelerometer]) {
const idl_array = new IdlArray();
idl_array.add_untested_idls(dom);
idl_array.add_untested_idls('interface EventHandler {};');
idl_array.add_idls(generic_sensor, { only: ['Sensor'] });
idl_array.add_idls(accelerometer);
idl_array.add_objects({
Accelerometer: ['new Accelerometer();'],
LinearAccelerationSensor: ['new LinearAccelerationSensor();'],
GravitySensor: ['new GravitySensor();']
});
idl_array.test();
})();
}
function fetchText(url) {
return fetch(url).then((response) => response.text());
}
promise_test(() => {
return Promise.all([
"/interfaces/dom.idl",
"/interfaces/generic-sensor.idl",
"/interfaces/accelerometer.idl",
].map(fetchText)).then(doTest);
}, "Test IDL implementation of Accelerometer Sensor");
</script>

View file

@ -33,5 +33,5 @@ promise_test(() => {
"/interfaces/generic-sensor.idl",
"/interfaces/ambient-light.idl",
].map(fetchText)).then(doTest);
}, "Test driver");
}, "Test IDL implementation of Ambient Light Sensor");
</script>

Some files were not shown because too many files have changed in this diff Show more