forked from servo/web-platform-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from servo-wpt-sync/servo_export_20629
Session history fixup
- Loading branch information
Showing
1,288 changed files
with
26,268 additions
and
8,004 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
_venv/ | ||
.cache/ | ||
.pytest_cache/ | ||
.tox/ | ||
|
||
# Node | ||
node_modules/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
addEventListener('message', evt => { | ||
postMessage(evt.data, [evt.data.bitmap]); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.