Update web-platform-tests to revision be5419e845d39089ba6dc338c1bd0fa279108317

This commit is contained in:
Josh Matthews 2018-01-04 13:44:24 -05:00
parent aa199307c8
commit 2b6f573eb5
3440 changed files with 109438 additions and 41750 deletions

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/feature-policy/resources/featurepolicy.js"></script>
<script src="/generic-sensor/generic-sensor-feature-policy-test.sub.js"></script>
<script>
"use strict";
run_fp_tests_disabled(GeolocationSensor);
</script>
</body>

View file

@ -0,0 +1 @@
Feature-Policy: geolocation 'none'

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/feature-policy/resources/featurepolicy.js"></script>
<script src="/generic-sensor/generic-sensor-feature-policy-test.sub.js"></script>
<script>
"use strict";
run_fp_tests_enabled_by_attribute_redirect_on_load(GeolocationSensor);
</script>
</body>

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/feature-policy/resources/featurepolicy.js"></script>
<script src="/generic-sensor/generic-sensor-feature-policy-test.sub.js"></script>
<script>
"use strict";
run_fp_tests_enabled_by_attribute(GeolocationSensor);
</script>
</body>

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/feature-policy/resources/featurepolicy.js"></script>
<script src="/generic-sensor/generic-sensor-feature-policy-test.sub.js"></script>
<script>
"use strict";
run_fp_tests_enabled(GeolocationSensor);
</script>
</body>

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/feature-policy/resources/featurepolicy.js"></script>
<script src="/generic-sensor/generic-sensor-feature-policy-test.sub.js"></script>
<script>
"use strict";
run_fp_tests_enabled_on_self_origin(GeolocationSensor);
</script>
</body>

View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>GeolocationSensor Test</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<link rel="help" href="https://wicg.github.io/geolocation-sensor/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/generic-sensor/generic-sensor-tests.js"></script>
<script>
runGenericSensorTests(GeolocationSensor);
</script>

View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>GeolocationSensor Test: insecure context</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<link rel="help" href="https://wicg.github.io/geolocation-sensor/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/generic-sensor/generic-sensor-tests.js"></script>
<script>
runGenericSensorInsecureContext("GeolocationSensor");
</script>

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>GeolocationSensor Test: onerror</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<link rel="help" href="https://wicg.github.io/geolocation-sensor/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/generic-sensor/generic-sensor-tests.js"></script>
<h2>Precondition</h2>
<ol>
<li>
Disable the Geolocation sensor or run test on a device without Geolocation sensor.
</li>
</ol>
<script>
runGenericSensorOnerror(GeolocationSensor);
</script>

View file

@ -1 +1,2 @@
@anssiko
@Honry

View file

@ -1,15 +1,19 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Geolocation Sensor IDL tests</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=/resources/WebIDLParser.js></script>
<script src=/resources/idlharness.js></script>
<link rel="help" href="https://wicg.github.io/geolocation-sensor/">
<link rel="help" href="https://w3c.github.io/sensors/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
<script>
"use strict";
function doTest([generic_sensor, geolocation_sensor]) {
var idl_array = new IdlArray();
const idl_array = new IdlArray();
idl_array.add_untested_idls('interface EventTarget {};');
idl_array.add_untested_idls('interface EventHandler {};');
idl_array.add_idls(generic_sensor, { only: ['Sensor'] });
idl_array.add_idls(geolocation_sensor);
idl_array.add_objects({
@ -23,8 +27,9 @@ function fetchText(url) {
}
promise_test(() => {
return Promise.all(["/interfaces/generic-sensor.idl",
"/interfaces/geolocation-sensor.idl"].map(fetchText))
.then(doTest);
}, "Test driver");
return Promise.all([
"/interfaces/generic-sensor.idl",
"/interfaces/geolocation-sensor.idl"
].map(fetchText)).then(doTest);
}, "Test IDL implementation of Geolocation Sensor");
</script>