-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
url: update WHATWG URL parser to align with latest spec
PR-URL: #43190 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
- Loading branch information
Showing
32 changed files
with
3,657 additions
and
821 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
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,34 @@ | ||
/* | ||
* Function that sends an accesskey using the proper key combination depending on the browser and OS. | ||
* | ||
* This needs that the test imports the following scripts: | ||
* <script src="/resources/testdriver.js"></script> | ||
* <script src="/resources/testdriver-actions.js"></script> | ||
* <script src="/resources/testdriver-vendor.js"></script> | ||
*/ | ||
function pressAccessKey(accessKey){ | ||
let controlKey = '\uE009'; // left Control key | ||
let altKey = '\uE00A'; // left Alt key | ||
let optionKey = altKey; // left Option key | ||
let shiftKey = '\uE008'; // left Shift key | ||
// There are differences in using accesskey across browsers and OS's. | ||
// See: // https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey | ||
let isMacOSX = navigator.userAgent.indexOf("Mac") != -1; | ||
let osAccessKey = isMacOSX ? [controlKey, optionKey] : [shiftKey, altKey]; | ||
let actions = new test_driver.Actions(); | ||
// Press keys. | ||
for (let key of osAccessKey) { | ||
actions = actions.keyDown(key); | ||
} | ||
actions = actions | ||
.keyDown(accessKey) | ||
.addTick() | ||
.keyUp(accessKey); | ||
osAccessKey.reverse(); | ||
for (let key of osAccessKey) { | ||
actions = actions.keyUp(key); | ||
} | ||
return actions.send(); | ||
} | ||
|
||
|
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,16 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Blank Page</title> | ||
<script> | ||
window.onload = function(event) { | ||
// This is needed to ensure the onload event fires when this page is | ||
// opened as a popup. | ||
// See https://github.com/web-platform-tests/wpt/pull/18157 | ||
}; | ||
</script> | ||
</head> | ||
<body> | ||
</body> | ||
</html> |
Oops, something went wrong.