forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream'
- Loading branch information
Showing
146 changed files
with
2,927 additions
and
692 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
51 changes: 0 additions & 51 deletions
51
LayoutTests/editing/async-clipboard/clipboard-interfaces-expected.txt
This file was deleted.
Oops, something went wrong.
68 changes: 0 additions & 68 deletions
68
LayoutTests/editing/async-clipboard/clipboard-interfaces.html
This file was deleted.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
LayoutTests/editing/selection/ios/selection-clip-rect-in-overflow-scroller.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
19 changes: 19 additions & 0 deletions
19
LayoutTests/editing/selection/ios/selection-hit-testing-in-overflow-scroller-expected.txt
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,19 @@ | ||
Verifies that the selection highlight is clipped to overflow scrolling container. Select all the text in the scrollable container below, scroll the container to the top, and then tap the button. Verify that a click event is dispatched on the button | ||
|
||
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". | ||
|
||
1. Select all of the below text | ||
Here’s to the crazy ones. The misfits. The rebels. The troublemakers. The round pegs in the square holes. The ones who see things differently. They’re not fond of rules. And they have no respect for the status quo. | ||
|
||
You can quote them, disagree with them, glorify or vilify them. About the only thing you can’t do is ignore them. | ||
|
||
Because they change things. They push the human race forward. And while some may see them as the crazy ones, we see genius. Because the people who are crazy enough to think they can change the world, are the ones who do. | ||
|
||
|
||
2. Then tap here | ||
PASS Selected text | ||
PASS handledClick became true | ||
PASS successfullyParsed is true | ||
|
||
TEST COMPLETE | ||
|
79 changes: 79 additions & 0 deletions
79
LayoutTests/editing/selection/ios/selection-hit-testing-in-overflow-scroller.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true AsyncOverflowScrollingEnabled=true SelectionHonorsOverflowScrolling=true ] --> | ||
<html> | ||
<head> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta charset="utf-8"> | ||
<script src="../../../resources/ui-helper.js"></script> | ||
<script src="../../../resources/js-test.js"></script> | ||
<style> | ||
body, html { | ||
font-size: 16px; | ||
font-family: system-ui; | ||
} | ||
|
||
#target { | ||
border: 1px solid tomato; | ||
padding: 3px; | ||
font-size: 24px; | ||
} | ||
|
||
.scrollable { | ||
width: 300px; | ||
height: 150px; | ||
border: solid 1px lightgray; | ||
border-radius: 4px; | ||
box-sizing: border-box; | ||
overflow-y: scroll; | ||
line-height: 1.5em; | ||
outline: none; | ||
padding: 1em; | ||
} | ||
|
||
button { | ||
font-size: 18px; | ||
padding: 0.5em; | ||
border: 0.5px solid lightgray; | ||
border-radius: 6px; | ||
background-color: white; | ||
} | ||
</style> | ||
<script> | ||
jsTestIsAsync = true; | ||
handledClick = false; | ||
|
||
addEventListener("load", async () => { | ||
let button = document.querySelector("button"); | ||
let scroller = document.querySelector(".scrollable"); | ||
|
||
description("Verifies that the selection highlight is clipped to overflow scrolling container. Select all the text in the scrollable container below, scroll the container to the top, and then tap the button. Verify that a click event is dispatched on the button"); | ||
button.addEventListener("click", () => { | ||
handledClick = true; | ||
}); | ||
|
||
await UIHelper.longPressElement(document.querySelector(".scrollable")); | ||
await UIHelper.waitForSelectionToAppear(); | ||
testPassed("Selected text"); | ||
|
||
getSelection().selectAllChildren(scroller); | ||
await UIHelper.ensureStablePresentationUpdate(); | ||
|
||
await UIHelper.activateElement(button); | ||
await shouldBecomeEqual("handledClick", "true"); | ||
|
||
finishJSTest(); | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
<div id="description"></div> | ||
<div class="scrollable"> | ||
<strong>1. Select all of the below text</strong> | ||
<p>Here’s to the crazy ones. The misfits. The rebels. The troublemakers. The round pegs in the square holes. The ones who see things differently. They’re not fond of rules. And they have no respect for the status quo.</p> | ||
<p>You can quote them, disagree with them, glorify or vilify them. About the only thing you can’t do is ignore them.</p> | ||
<p>Because they change things. They push the human race forward. And while some may see them as the crazy ones, we see genius. Because the people who are crazy enough to think they can change the world, are the ones who do.</p> | ||
</div> | ||
<br> | ||
<div><button>2. Then tap here</button></div> | ||
<div id="console"></div> | ||
</body> | ||
</html> |
1 change: 1 addition & 0 deletions
1
LayoutTests/fast/css/attribute-selector-for-style-inline-invalidation-expected.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div style="color: green">This is green</div> |
10 changes: 10 additions & 0 deletions
10
LayoutTests/fast/css/attribute-selector-for-style-inline-invalidation.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<style> | ||
[style*="display: none;"] { display:block !important; color: green; } | ||
</style> | ||
<div id=t>This is green</div> | ||
<script> | ||
document.body.offsetTop; | ||
t.style.display = "block"; | ||
document.body.offsetTop; | ||
t.style.display = "none"; | ||
</script> |
1 change: 1 addition & 0 deletions
1
LayoutTests/fast/css/grid-span-calc-negative-crash-expected.txt
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 @@ | ||
This test passes if it doesn't crash. |
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,13 @@ | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
</script> | ||
<style> | ||
#c { | ||
display: grid; | ||
} | ||
#e { | ||
grid-column-start: span calc(-1); | ||
} | ||
</style> | ||
<div id=c><div id=e>This test passes if it doesn't crash.</div></div> |
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
22 changes: 19 additions & 3 deletions
22
LayoutTests/imported/w3c/web-platform-tests/clipboard-apis/clipboard-item.https-expected.txt
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 |
---|---|---|
@@ -1,14 +1,30 @@ | ||
|
||
PASS ClipboardItem({string, Blob}) succeeds with different types | ||
PASS ClipboardItem() succeeds with empty options | ||
FAIL ClipboardItem({}) fails with empty dictionary input assert_throws_js: function "() => {new ClipboardItem({});}" did not throw | ||
FAIL ClipboardItem(Blob) fails assert_throws_js: function "() => {new ClipboardItem(blob);}" did not throw | ||
FAIL ClipboardItem() fails with null input assert_throws_js: function "() => {new ClipboardItem(null);}" did not throw | ||
PASS ClipboardItem({}) fails with empty dictionary input | ||
PASS ClipboardItem(Blob) fails | ||
PASS ClipboardItem() fails with null input | ||
PASS ClipboardItem() fails with no input | ||
PASS types() returns correct values | ||
PASS getType(DOMString valid type) succeeds with correct output | ||
PASS getType(DOMString invalid type) succeeds with correct output | ||
PASS getType(DOMString type) rejects correctly when querying for missing type | ||
PASS getType(DOMString valid type) converts DOMString to Blob | ||
PASS getType(DOMString invalid type) converts DOMString to Blob | ||
PASS supports(text/plain) returns true | ||
PASS supports(text/html) returns true | ||
PASS supports(image/png) returns true | ||
PASS supports(text/uri-list) returns true | ||
FAIL supports(image/svg+xml) returns true assert_equals: expected true but got false | ||
FAIL supports(web foo/bar) returns true assert_equals: expected true but got false | ||
FAIL supports(web text/html) returns true assert_equals: expected true but got false | ||
PASS supports(web ) returns false | ||
PASS supports(web) returns false | ||
PASS supports(web foo) returns false | ||
PASS supports(foo/bar) returns false | ||
PASS supports(weB text/html) returns false | ||
PASS supports( web text/html) returns false | ||
PASS supports(not a/real type) returns false | ||
PASS supports() returns false | ||
PASS supports( ) returns false | ||
|
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.