Skip to content

Commit 3cd925c

Browse files
committed
2 parents e2ed9a7 + 327e725 commit 3cd925c

File tree

407 files changed

+12798
-8895
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

407 files changed

+12798
-8895
lines changed

JSTests/stress/json-stringify-inspector-check.js

Lines changed: 33 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
function shouldThrow(func, errorMessage) {
2+
var errorThrown = false;
3+
var error = null;
4+
try {
5+
func();
6+
} catch (e) {
7+
errorThrown = true;
8+
error = e;
9+
}
10+
if (!errorThrown)
11+
throw new Error('not thrown');
12+
if (String(error) !== errorMessage)
13+
throw new Error(`bad error: ${String(error)}`);
14+
}
15+
16+
var object = { };
17+
object.object = object;
18+
19+
shouldThrow(() => {
20+
JSON.stringify(object);
21+
}, `TypeError: JSON.stringify cannot serialize cyclic structures.`);

JSTests/wasm/stress/wasm-js-multi-value-exception-in-iterator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ skip if $memoryLimited
12
import * as assert from '../assert.js';
23
import { compile } from "../wabt-wrapper.js";
34

LayoutTests/TestExpectations

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,10 +1698,7 @@ imported/w3c/web-platform-tests/css/css-grid/masonry/tentative/gap/masonry-gap-0
16981698

16991699
webkit.org/b/266091 imported/w3c/web-platform-tests/css/css-grid/masonry/tentative/grid-placement/masonry-grid-placement-named-lines-002.html [ ImageOnlyFailure ]
17001700

1701-
webkit.org/b/266091 imported/w3c/web-platform-tests/css/css-grid/masonry/tentative/intrinsic-sizing/masonry-intrinsic-sizing-cols-001.html [ ImageOnlyFailure ]
1702-
webkit.org/b/266091 imported/w3c/web-platform-tests/css/css-grid/masonry/tentative/intrinsic-sizing/masonry-intrinsic-sizing-cols-003.html [ ImageOnlyFailure ]
17031701
webkit.org/b/266091 imported/w3c/web-platform-tests/css/css-grid/masonry/tentative/intrinsic-sizing/masonry-intrinsic-sizing-cols-004.html [ ImageOnlyFailure ]
1704-
webkit.org/b/266091 imported/w3c/web-platform-tests/css/css-grid/masonry/tentative/intrinsic-sizing/masonry-intrinsic-sizing-cols-005.html [ ImageOnlyFailure ]
17051702
webkit.org/b/266091 imported/w3c/web-platform-tests/css/css-grid/masonry/tentative/intrinsic-sizing/masonry-intrinsic-sizing-rows-001.html [ ImageOnlyFailure ]
17061703
webkit.org/b/266091 imported/w3c/web-platform-tests/css/css-grid/masonry/tentative/intrinsic-sizing/masonry-intrinsic-sizing-rows-002.html [ ImageOnlyFailure ]
17071704
webkit.org/b/266091 imported/w3c/web-platform-tests/css/css-grid/masonry/tentative/intrinsic-sizing/masonry-intrinsic-sizing-rows-003.html [ ImageOnlyFailure ]
@@ -7325,51 +7322,14 @@ imported/w3c/web-platform-tests/css/css-inline/initial-letter/initial-letter-sun
73257322
imported/w3c/web-platform-tests/css/css-inline/initial-letter/initial-letter-with-first-line.html [ ImageOnlyFailure ]
73267323
imported/w3c/web-platform-tests/css/css-inline/initial-letter/initial-letter-with-tab-rtl.html [ ImageOnlyFailure ]
73277324
imported/w3c/web-platform-tests/css/css-inline/initial-letter/initial-letter-with-tab.html [ ImageOnlyFailure ]
7328-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-line-clamp-001.html [ ImageOnlyFailure ]
73297325
imported/w3c/web-platform-tests/css/css-inline/baseline-source/baseline-source-first-002.html [ Pass Failure ]
73307326
imported/w3c/web-platform-tests/css/css-inline/baseline-source/baseline-source-first-003.html [ Pass Failure ]
73317327
imported/w3c/web-platform-tests/css/css-inline/baseline-source/baseline-source-last-002.html [ Pass Failure ]
73327328
imported/w3c/web-platform-tests/css/css-inline/baseline-source/baseline-source-last-003.html [ Pass Failure ]
7333-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-accumulation-001.html [ Skip ]
7334-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-end-001.html?class=alphabetic [ Skip ]
7335-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-end-001.html?class=leading [ Skip ]
7336-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-end-001.html?class=text [ Skip ]
7337-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-end-001.html?class=vlr,cap [ Skip ]
7338-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-end-001.html?class=vlr,ex [ Skip ]
7339-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-end-001.html?class=vlr,leading [ Skip ]
7340-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-end-001.html?class=vlr,text [ Skip ]
7341-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-end-001.html?class=vrl,alphabetic [ Skip ]
7342-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-end-001.html?class=vrl,leading [ Skip ]
7343-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-end-001.html?class=vrl,text [ Skip ]
7344-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-end-001.html?class=auto [ Skip ]
7345-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-end-001.html?class=vlr,auto [ Skip ]
7346-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-end-001.html?class=vrl,auto [ Skip ]
7347-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-start-001.html?class=cap [ Skip ]
7348-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-start-001.html?class=ex [ Skip ]
7349-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-start-001.html?class=leading [ Skip ]
7350-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-start-001.html?class=text [ Skip ]
7351-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-start-001.html?class=vlr,alphabetic [ Skip ]
7352-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-start-001.html?class=vlr,leading [ Skip ]
7353-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-start-001.html?class=vlr,text [ Skip ]
7354-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-start-001.html?class=vrl,cap [ Skip ]
7355-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-start-001.html?class=vrl,ex [ Skip ]
7356-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-start-001.html?class=vrl,leading [ Skip ]
7357-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-start-001.html?class=vrl,text [ Skip ]
7358-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-start-001.html?class=auto [ Skip ]
7359-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-start-001.html?class=vlr,auto [ Skip ]
7360-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-start-001.html?class=vrl,auto [ Skip ]
7361-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-atomic-inline-001.html [ ImageOnlyFailure ]
7362-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-float-clear-br-002.html [ ImageOnlyFailure ]
7363-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-float-clear-br-003.html [ ImageOnlyFailure ]
7364-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-half-leading-block-box-004.html [ ImageOnlyFailure ]
7365-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-half-leading-block-box-005.html [ ImageOnlyFailure ]
7329+
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-line-clamp-001.html [ ImageOnlyFailure ]
73667330
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-height-002.html [ ImageOnlyFailure ]
73677331
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-multicol-001.html [ ImageOnlyFailure ]
73687332
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-multicol-002.html [ ImageOnlyFailure ]
7369-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-ruby-end-001.html [ ImageOnlyFailure ]
7370-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-ruby-start-002.html [ ImageOnlyFailure ]
7371-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-dynamic-001.html [ Skip ]
7372-
imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-dynamic-002.html [ Skip ]
73737333

73747334
webkit.org/b/245032 imported/w3c/web-platform-tests/css/compositing/root-element-background-image-transparency-004.html [ ImageOnlyFailure ]
73757335

LayoutTests/accessibility/links-activation-expected.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ This test ensures that a link is activated with a simulated accessibility press
1111
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
1212

1313

14-
click event [object MouseEvent] for element A with id multiline-link
14+
click event [object PointerEvent] for element A with id multiline-link
1515
PASS clicked became true
16-
click event [object MouseEvent] for element A with id singleline-link
16+
click event [object PointerEvent] for element A with id singleline-link
1717
PASS clicked became true
1818
PASS successfullyParsed is true
1919

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
1-
wrods is misspelled aab lotsi nowadays. euep.
21
This tests that misspelling ranges are properly retrieved in the fashion that a spell checker would.
32

4-
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
5-
6-
73
textMarkerRange start: 0
84
textMarkerRange end: 45
95
startRange start: 0
106
startRange end: 0
117
misspelling start: 0
128
misspelling end: 5
13-
PASS text.stringForTextMarkerRange(misspellingRange) is 'wrods'
9+
PASS: text.stringForTextMarkerRange(misspellingRange) === 'wrods'
1410
misspelling start: 20
1511
misspelling end: 23
16-
PASS text.stringForTextMarkerRange(misspellingRange) is 'aab'
12+
PASS: text.stringForTextMarkerRange(misspellingRange) === 'aab'
1713
misspelling start: 24
1814
misspelling end: 29
19-
PASS text.stringForTextMarkerRange(misspellingRange) is 'lotsi'
15+
PASS: text.stringForTextMarkerRange(misspellingRange) === 'lotsi'
2016
misspelling start: 40
2117
misspelling end: 44
22-
PASS text.stringForTextMarkerRange(misspellingRange) is 'euep'
18+
PASS: text.stringForTextMarkerRange(misspellingRange) === 'euep'
2319
misspelling start: 24
2420
misspelling end: 29
25-
PASS text.stringForTextMarkerRange(misspellingRange) is 'lotsi'
21+
PASS: text.stringForTextMarkerRange(misspellingRange) === 'lotsi'
22+
2623
PASS successfullyParsed is true
2724

2825
TEST COMPLETE
29-
26+
wrods is misspelled aab lotsi nowadays. euep.

LayoutTests/accessibility/misspelling-range.html

Lines changed: 47 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,90 @@
11
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
22
<html>
33
<head>
4-
<script src="../resources/js-test-pre.js"></script>
5-
<script>
6-
if (window.testRunner)
7-
testRunner.dumpAsText();
8-
</script>
4+
<script src="../resources/accessibility-helper.js"></script>
5+
<script src="../resources/js-test.js"></script>
96
</head>
107
<body>
118

129
<div contenteditable=true id="content" role="textbox">
1310
wrods is misspelled aab lotsi nowadays. euep.
1411
</div>
1512

16-
<p id="description"></p>
17-
<div id="console"></div>
18-
1913
<script>
20-
description("This tests that misspelling ranges are properly retrieved in the fashion that a spell checker would.");
21-
22-
if (window.accessibilityController) {
23-
var content = document.getElementById("content");
24-
content.focus();
14+
let output = "This tests that misspelling ranges are properly retrieved in the fashion that a spell checker would.\n\n";
15+
jsTestIsAsync = true;
2516

26-
var text = accessibilityController.focusedElement;
17+
if (window.accessibilityController && window.internals) {
18+
var content = document.getElementById("content");
19+
content.focus();
20+
var text = accessibilityController.focusedElement;
2721

28-
var textMarkerRange = text.textMarkerRangeForElement(text);
29-
var startMarker = text.startTextMarkerForTextMarkerRange(textMarkerRange);
30-
debug("textMarkerRange start: " + text.indexForTextMarker(startMarker));
31-
var endMarker = text.endTextMarkerForTextMarkerRange(textMarkerRange);
32-
debug("textMarkerRange end: " + text.indexForTextMarker(endMarker));
22+
var textMarkerRange = text.textMarkerRangeForElement(text);
23+
var startMarker = text.startTextMarkerForTextMarkerRange(textMarkerRange);
24+
output += `textMarkerRange start: ${text.indexForTextMarker(startMarker)}\n`;
25+
var endMarker = text.endTextMarkerForTextMarkerRange(textMarkerRange);
26+
output += `textMarkerRange end: ${text.indexForTextMarker(endMarker)}\n`;
3327

34-
// Find the first misspelling, "wrods".
35-
var startRange = text.textMarkerRangeForMarkers(startMarker, startMarker);
36-
startMarker = text.startTextMarkerForTextMarkerRange(startRange);
37-
debug("startRange start: " + text.indexForTextMarker(startMarker));
38-
endMarker = text.endTextMarkerForTextMarkerRange(startRange);
39-
debug("startRange end: " + text.indexForTextMarker(endMarker));
28+
// Find the first misspelling, "wrods".
29+
var startRange = text.textMarkerRangeForMarkers(startMarker, startMarker);
30+
startMarker = text.startTextMarkerForTextMarkerRange(startRange);
31+
output += `startRange start: ${text.indexForTextMarker(startMarker)}\n`;
32+
endMarker = text.endTextMarkerForTextMarkerRange(startRange);
33+
output += `startRange end: ${text.indexForTextMarker(endMarker)}\n`;
4034

41-
var misspellingRange = text.misspellingTextMarkerRange(startRange, true);
42-
startMarker = text.startTextMarkerForTextMarkerRange(misspellingRange);
43-
debug("misspelling start: " + text.indexForTextMarker(startMarker));
35+
setTimeout(async () => {
36+
misspellingRange = null;
37+
startMarker = null;
38+
await waitFor(() => {
39+
misspellingRange = text.misspellingTextMarkerRange(startRange, true);
40+
startMarker = text.startTextMarkerForTextMarkerRange(misspellingRange);
41+
return text.indexForTextMarker(startMarker) >= 0;
42+
});
43+
output += `misspelling start: ${text.indexForTextMarker(startMarker)}\n`;
4444
endMarker = text.endTextMarkerForTextMarkerRange(misspellingRange);
45-
debug("misspelling end: " + text.indexForTextMarker(endMarker));
46-
shouldBe("text.stringForTextMarkerRange(misspellingRange)", "'wrods'");
45+
output += `misspelling end: ${text.indexForTextMarker(endMarker)}\n`;
46+
output += expect("text.stringForTextMarkerRange(misspellingRange)", "'wrods'");
4747

4848
// Find the next one, "aab".
4949
startRange = misspellingRange;
5050
misspellingRange = text.misspellingTextMarkerRange(startRange, true);
5151
startMarker = text.startTextMarkerForTextMarkerRange(misspellingRange);
52-
debug("misspelling start: " + text.indexForTextMarker(startMarker));
52+
output += `misspelling start: ${text.indexForTextMarker(startMarker)}\n`;
5353
endMarker = text.endTextMarkerForTextMarkerRange(misspellingRange);
54-
debug("misspelling end: " + text.indexForTextMarker(endMarker));
55-
shouldBe("text.stringForTextMarkerRange(misspellingRange)", "'aab'");
54+
output += `misspelling end: ${text.indexForTextMarker(endMarker)}\n`;
55+
output += expect("text.stringForTextMarkerRange(misspellingRange)", "'aab'");
5656

5757
// Find the next one, "lotsi".
5858
startRange = misspellingRange;
5959
misspellingRange = text.misspellingTextMarkerRange(startRange, true);
6060
startMarker = text.startTextMarkerForTextMarkerRange(misspellingRange);
61-
debug("misspelling start: " + text.indexForTextMarker(startMarker));
61+
output += `misspelling start: ${text.indexForTextMarker(startMarker)}\n`;
6262
endMarker = text.endTextMarkerForTextMarkerRange(misspellingRange);
63-
debug("misspelling end: " + text.indexForTextMarker(endMarker));
64-
shouldBe("text.stringForTextMarkerRange(misspellingRange)", "'lotsi'");
63+
output += `misspelling end: ${text.indexForTextMarker(endMarker)}\n`;
64+
output += expect("text.stringForTextMarkerRange(misspellingRange)", "'lotsi'");
6565

6666
// Find the next one, "euep".
6767
startRange = misspellingRange;
6868
misspellingRange = text.misspellingTextMarkerRange(startRange, true);
6969
startMarker = text.startTextMarkerForTextMarkerRange(misspellingRange);
70-
debug("misspelling start: " + text.indexForTextMarker(startMarker));
70+
output += `misspelling start: ${text.indexForTextMarker(startMarker)}\n`;
7171
endMarker = text.endTextMarkerForTextMarkerRange(misspellingRange);
72-
debug("misspelling end: " + text.indexForTextMarker(endMarker));
73-
shouldBe("text.stringForTextMarkerRange(misspellingRange)", "'euep'");
72+
output += `misspelling end: ${text.indexForTextMarker(endMarker)}\n`;
73+
output += expect("text.stringForTextMarkerRange(misspellingRange)", "'euep'");
7474

7575
// Find the previous one, "lotsi".
7676
startRange = misspellingRange;
7777
misspellingRange = text.misspellingTextMarkerRange(startRange, false);
7878
startMarker = text.startTextMarkerForTextMarkerRange(misspellingRange);
79-
debug("misspelling start: " + text.indexForTextMarker(startMarker));
79+
output += `misspelling start: ${text.indexForTextMarker(startMarker)}\n`;
8080
endMarker = text.endTextMarkerForTextMarkerRange(misspellingRange);
81-
debug("misspelling end: " + text.indexForTextMarker(endMarker));
82-
shouldBe("text.stringForTextMarkerRange(misspellingRange)", "'lotsi'");
83-
}
84-
</script>
81+
output += `misspelling end: ${text.indexForTextMarker(endMarker)}\n`;
82+
output += expect("text.stringForTextMarkerRange(misspellingRange)", "'lotsi'");
8583

86-
<script src="../resources/js-test-post.js"></script>
84+
debug(output);
85+
finishJSTest();
86+
}, 0);
87+
}
88+
</script>
8789
</body>
8890
</html>
89-

LayoutTests/css3/filters/backdrop-filter-page-scale-expected.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
<head>
44
<meta charset="utf-8">
55
<script>
6-
window.onload = async function() {
7-
if (window.testRunner)
6+
if (window.testRunner)
7+
window.testRunner.waitUntilDone();
8+
async function test() {
9+
if (window.testRunner) {
810
await window.testRunner.setPageScaleFactor(2, 0, 0);
11+
window.testRunner.notifyDone();
12+
}
913
}
1014
</script>
1115
<style>
@@ -17,7 +21,7 @@
1721

1822
</style>
1923
</head>
20-
<body>
24+
<body onload="test()">
2125
Hello
2226
<div></div>
2327
</body>

LayoutTests/css3/filters/backdrop-filter-page-scale.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
<head>
44
<meta charset="utf-8">
55
<script>
6-
window.onload = async function() {
7-
if (window.testRunner)
6+
if (window.testRunner)
7+
window.testRunner.waitUntilDone();
8+
async function test() {
9+
if (window.testRunner) {
810
await window.testRunner.setPageScaleFactor(2, 0, 0);
11+
window.testRunner.notifyDone();
12+
}
913
}
1014
</script>
1115
<style>
@@ -17,7 +21,7 @@
1721

1822
</style>
1923
</head>
20-
<body>
24+
<body onload="test()">
2125
Hello
2226
<div></div>
2327
</body>

LayoutTests/fast/ruby/floating-ruby-text-expected.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layer at (0,0) size 1428x585
33
layer at (0,0) size 800x31
44
RenderBlock {HTML} at (0,0) size 800x31 [color=#FFFFFF]
55
RenderBody {BODY} at (8,8) size 784x15
6-
RenderInline {RUBY} at (0,5) size 1420x10
6+
RenderInline {RUBY} at (0,5) size 1420x12
77
RenderInline (generated) at (0,5) size 1420x10
88
RenderText {#text} at (0,5) size 1420x10
99
text run at (0,5) width 1420: "Attempt to create a floating ruby text element. Float is not supported for ruby text, which should be apparent from the resulting render tree."

0 commit comments

Comments
 (0)