Skip to content

Commit

Permalink
Merge pull request #50 from servo-wpt-sync/servo_export_20629
Browse files Browse the repository at this point in the history
Session history fixup
  • Loading branch information
servo-wpt-sync committed Apr 12, 2018
2 parents dbb38a6 + b382841 commit 78080dd
Show file tree
Hide file tree
Showing 1,288 changed files with 26,268 additions and 8,004 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
_venv/
.cache/
.pytest_cache/
.tox/

# Node
node_modules/
Expand Down
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ matrix:
env: JOB=tools_unittest TOXENV=py27 HYPOTHESIS_PROFILE=ci SCRIPT=tools/ci/ci_tools_unittest.sh
- python: 3.6
env: JOB=tools_unittest TOXENV=py36 HYPOTHESIS_PROFILE=ci SCRIPT=tools/ci/ci_tools_unittest.sh
- python: pypy-5.4
env: JOB=tools_unittest TOXENV=pypy HYPOTHESIS_PROFILE=ci SCRIPT=tools/ci/ci_tools_unittest.sh
- python: 2.7
env: JOB=resources_unittest TOXENV=py27 SCRIPT=tools/ci/ci_resources_unittest.sh
- python: 2.7
Expand Down
43 changes: 43 additions & 0 deletions 2dcontext/imagebitmap/createImageBitmap-transfer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>createImageBitmap transferring test</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/media.js"></script>
<script src="/common/namespaces.js"></script>
<script src="common.sub.js"></script>
<div id=log></div>
<script>
let worker, continuations = {};
setup(function() {
worker = new Worker("transfer-worker.js");
worker.addEventListener("message", function(event) {
let { name, bitmap } = event.data;
if (continuations.hasOwnProperty(name)) {
continuations[name](bitmap);
}
});
});

for (let { name, factory } of imageSourceTypes) {
promise_test(function(t) {
return factory().then(createImageBitmap).then(function(bitmap) {
assert_equals(bitmap.width, 20);
assert_equals(bitmap.height, 20);

worker.postMessage({ name: t.name, bitmap: bitmap }, [bitmap]);

assert_equals(bitmap.width, 0);
assert_equals(bitmap.height, 0);

return new Promise(function(resolve) {
continuations[t.name] = resolve;
});
}).then(function(bitmap) {
assert_class_string(bitmap, "ImageBitmap");
assert_equals(bitmap.width, 20);
assert_equals(bitmap.height, 20);
});
}, `Transfer ImageBitmap created from ${name}`);
}
</script>
3 changes: 3 additions & 0 deletions 2dcontext/imagebitmap/transfer-worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
addEventListener('message', evt => {
postMessage(evt.data, [evt.data.bitmap]);
});
29 changes: 29 additions & 0 deletions BackgroundSync/interfaces.any.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js

'use strict';

// https://wicg.github.io/BackgroundSync/spec/

promise_test(async () => {
const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
const html = await fetch('/interfaces/html.idl').then(r => r.text());
const sw = await fetch('/interfaces/ServiceWorker.idl').then(r => r.text());
const idl = await fetch('/interfaces/BackgroundSync.idl').then(response => response.text());

const idlArray = new IdlArray();
idlArray.add_untested_idls(dom, { only: ['Event', 'EventInit', 'EventTarget'] });
idlArray.add_untested_idls(html, { only: [
'WorkerGlobalScope',
'WindowOrWorkerGlobalScope'
] });
idlArray.add_untested_idls(sw, { only: [
'ServiceWorkerRegistration',
'ServiceWorkerGlobalScope',
'ExtendableEvent',
'ExtendableEventInit',
] });
idlArray.add_idls(idl);
idlArray.test();
done();
}, 'Background Sync interfaces.');
21 changes: 21 additions & 0 deletions FileAPI/url/url-in-tags-revoke.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,27 @@ async_test(t => {
});
}, 'Fetching a blob URL immediately before revoking it works in an iframe.');

async_test(t => {
const run_result = 'test_frame_OK';
const blob_contents = '<!doctype html>\n<meta charset="utf-8">\n' +
'<script>window.test_result = "' + run_result + '";</script>';
const blob = new Blob([blob_contents], {type: 'text/html'});
const url = URL.createObjectURL(blob);

const frame = document.createElement('iframe');
frame.setAttribute('src', '/common/blank.html');
frame.setAttribute('style', 'display:none;');
document.body.appendChild(frame);

frame.onload = t.step_func(() => {
frame.contentWindow.location = url;
URL.revokeObjectURL(url);
frame.onload = t.step_func_done(() => {
assert_equals(frame.contentWindow.test_result, run_result);
});
});
}, 'Fetching a blob URL immediately before revoking it works in an iframe navigation.');

async_test(t => {
const run_result = 'test_script_OK';
const blob_contents = 'window.script_test_result = "' + run_result + '";';
Expand Down
3 changes: 1 addition & 2 deletions IndexedDB/interfaces.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ promise_test(async t => {
].map(url => fetch(url).then(response => response.text())));

const idl_array = new IdlArray();
idl_array.add_untested_idls('interface LinkStyle {};'); // Needed by html
idl_array.add_untested_idls(html);
idl_array.add_untested_idls(html, { only: ['WindowOrWorkerGlobalScope'] });
idl_array.add_untested_idls(dom);
idl_array.add_idls(indexeddb);
idl_array.add_objects({
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ will be `C:\\OpenSSL-Win32\\bin\\openssl.cfg`).
### Trusting Root CA

To prevent browser SSL warnings when running HTTPS tests locally, the
web-platform-tests Root CA file `rootca.pem` in [tools/certs](tools/certs)
web-platform-tests Root CA file `cacert.pem` in [tools/certs](tools/certs)
must be added as a trusted certificate in your OS/browser.

Publication
Expand Down Expand Up @@ -423,7 +423,7 @@ is [archived][ircarchive].

[contributing]: https://github.com/w3c/web-platform-tests/blob/master/CONTRIBUTING.md
[ircw3org]: https://www.w3.org/wiki/IRC
[ircarchive]: http://logs.glob.uno/?c=w3%23testing
[ircarchive]: https://w3.logbot.info/testing
[mailarchive]: https://lists.w3.org/Archives/Public/public-test-infra/

Documentation
Expand Down
2 changes: 1 addition & 1 deletion accelerometer/idlharness.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
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(generic_sensor, { only: ['Sensor', 'SensorOptions'] });
idl_array.add_idls(accelerometer);
idl_array.add_objects({
Accelerometer: ['new Accelerometer();'],
Expand Down
73 changes: 73 additions & 0 deletions accname/description_1.0_combobox-focusable-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<!doctype html>
<html>
<head>
<title>Description 1.0 combobox-focusable</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link rel="stylesheet" href="/resources/testharness.css">
<link rel="stylesheet" href="/wai-aria/scripts/manual.css">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/wai-aria/scripts/ATTAcomm.js"></script>
<script>
setup({explicit_timeout: true, explicit_done: true });

var theTest = new ATTAcomm(
{
"steps" : [
{
"element" : "test",
"test" : {
"ATK" : [
[
"property",
"description",
"is",
""
]
],
"AXAPI" : [
[
"property",
"AXHelp",
"is",
""
]
],
"IAccessible2" : [
[
"property",
"accDescription",
"is",
""
]
],
"UIA" : [
[
"property",
"Description",
"is",
""
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "Description 1.0 combobox-focusable"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for Description 1.0 combobox-focusable.</p>
<div id="test" role="combobox" tabindex="0" title="Choose your language.">
<span> English </span>
</div>

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,31 @@
"property",
"description",
"is",
"My name is Garaventa the weird. (QED) Where are my marbles?"
"My name is Eli the weird. (QED) Where are my marbles?"
]
],
"AXAPI" : [
[
"property",
"AXHelp",
"is",
"My name is Garaventa the weird. (QED) Where are my marbles?"
"My name is Eli the weird. (QED) Where are my marbles?"
]
],
"IAccessible2" : [
[
"property",
"accDescription",
"is",
"My name is Garaventa the weird. (QED) Where are my marbles?"
"My name is Eli the weird. (QED) Where are my marbles?"
]
],
"UIA" : [
[
"property",
"Description",
"is",
"My name is Garaventa the weird. (QED) Where are my marbles?"
"My name is Eli the weird. (QED) Where are my marbles?"
]
]
},
Expand All @@ -62,7 +62,10 @@
</head>
<body>
<p>This test examines the ARIA properties for Description from content of describedby element.</p>
<input id="test" type="text" aria-label="Important stuff" aria-describedby="descId" />
<style>
.hidden { display: none; }
</style>
<input id="test" type="text" aria-label="Important stuff" aria-describedby="descId" />
<div>
<div id="descId">
<span aria-hidden="true"><i> Hello, </i></span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,31 @@
"property",
"description",
"is",
"My name is Garaventa the weird. (QED) Where are my marbles?"
"My name is Eli the weird. (QED) Where are my marbles?"
]
],
"AXAPI" : [
[
"property",
"AXHelp",
"is",
"My name is Garaventa the weird. (QED) Where are my marbles?"
"My name is Eli the weird. (QED) Where are my marbles?"
]
],
"IAccessible2" : [
[
"property",
"accDescription",
"is",
"My name is Garaventa the weird. (QED) Where are my marbles?"
"My name is Eli the weird. (QED) Where are my marbles?"
]
],
"UIA" : [
[
"property",
"Description",
"is",
"My name is Garaventa the weird. (QED) Where are my marbles?"
"My name is Eli the weird. (QED) Where are my marbles?"
]
]
},
Expand All @@ -62,7 +62,10 @@
</head>
<body>
<p>This test examines the ARIA properties for Description from content of describedby element which is hidden.</p>
<div>
<style>
.hidden { display: none; }
</style>
<div>
<input id="test" type="text" aria-labelledby="lbl1 lbl2" aria-describedby="descId" />
<span>
<span aria-hidden="true" id="lbl1">Important</span>
Expand Down
8 changes: 4 additions & 4 deletions accname/name_1.0_combobox-focusable-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,31 @@
"property",
"name",
"is",
"Choose your language. English"
"Choose your language."
]
],
"AXAPI" : [
[
"property",
"AXDescription",
"is",
"Choose your language. English"
"Choose your language."
]
],
"IAccessible2" : [
[
"property",
"accName",
"is",
"Choose your language. English"
"Choose your language."
]
],
"UIA" : [
[
"property",
"Name",
"is",
"Choose your language. English"
"Choose your language."
]
]
},
Expand Down
Loading

0 comments on commit 78080dd

Please sign in to comment.