} Resolves when Chromium specific setup is complete.
*/
async function performChromiumSetup() {
- const chromiumResources = [
- '/gen/content/test/data/mojo_web_test_helper_test.mojom.js',
- '/gen/device/bluetooth/public/mojom/uuid.mojom.js',
- '/gen/url/mojom/origin.mojom.js',
- '/gen/device/bluetooth/public/mojom/test/fake_bluetooth.mojom.js',
- '/gen/content/web_test/common/fake_bluetooth_chooser.mojom.js',
- ];
// Determine path prefixes.
let resPrefix = '/resources';
- let extra = ['/resources/chromium/web-bluetooth-test.js'];
+ const chromiumResources = ['/resources/chromium/web-bluetooth-test.js'];
const pathname = window.location.pathname;
- if (pathname.includes('/web_tests/')) {
- let root = pathname.match(/.*(?:web_tests)/);
- resPrefix = `${root}/external/wpt/resources`;
- extra = [
- `${root}/external/wpt/resources/chromium/web-bluetooth-test.js`,
- `${root}/resources/bluetooth/bluetooth-fake-adapter.js`,
- ];
+ if (pathname.includes('/wpt_internal/')) {
+ chromiumResources.push(
+ '/wpt_internal/bluetooth/resources/bluetooth-fake-adapter.js');
}
await loadScript(`${resPrefix}/test-only-api.js`);
@@ -54,11 +43,12 @@ async function performChromiumSetup() {
return;
}
- await loadMojoResources(chromiumResources);
- for (const path of extra) {
+ for (const path of chromiumResources) {
await loadScript(path);
}
+ await initializeChromiumResources();
+
// Call setBluetoothFakeAdapter() to clean up any fake adapters left over by
// legacy tests. Legacy tests that use setBluetoothFakeAdapter() sometimes
// fail to clean their fake adapter. This is not a problem for these tests
diff --git a/tests/wpt/web-platform-tests/css/css-grid/abspos/positioned-grid-items-018.html b/tests/wpt/web-platform-tests/css/css-grid/abspos/positioned-grid-items-018.html
new file mode 100644
index 00000000000..0c9d21642ef
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-grid/abspos/positioned-grid-items-018.html
@@ -0,0 +1,7 @@
+
+
+
+Test passes if there is a filled green square.
+
diff --git a/tests/wpt/web-platform-tests/css/css-grid/alignment/grid-gutters-015-ref.html b/tests/wpt/web-platform-tests/css/css-grid/alignment/grid-gutters-015-ref.html
new file mode 100644
index 00000000000..dd4d8daf6a3
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-grid/alignment/grid-gutters-015-ref.html
@@ -0,0 +1,22 @@
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/css-grid/alignment/grid-gutters-015.html b/tests/wpt/web-platform-tests/css/css-grid/alignment/grid-gutters-015.html
new file mode 100644
index 00000000000..ed1048fd697
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-grid/alignment/grid-gutters-015.html
@@ -0,0 +1,23 @@
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/css-grid/alignment/grid-gutters-016-ref.html b/tests/wpt/web-platform-tests/css/css-grid/alignment/grid-gutters-016-ref.html
new file mode 100644
index 00000000000..a56ab07e182
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-grid/alignment/grid-gutters-016-ref.html
@@ -0,0 +1,22 @@
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/css-grid/alignment/grid-gutters-016.html b/tests/wpt/web-platform-tests/css/css-grid/alignment/grid-gutters-016.html
new file mode 100644
index 00000000000..163787cfee6
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-grid/alignment/grid-gutters-016.html
@@ -0,0 +1,25 @@
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/direction-rtl.html b/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/direction-rtl.html
index d10c013e1ee..85724c31fea 100644
--- a/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/direction-rtl.html
+++ b/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/direction-rtl.html
@@ -19,10 +19,12 @@ div {
}
#close-target {
- width: 300px;
- height: 300px;
- top: 100px;
- right: 200px;
+ width: 200px;
+ height: 200px;
+ border: solid green 50px;
+ top: 50px;
+ right: 150px;
+ margin: 50px;
background-color: green;
scroll-snap-align: start;
}
diff --git a/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/scroll-snap-initial-layout-000-ref.html b/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/scroll-snap-initial-layout-000-ref.html
new file mode 100644
index 00000000000..f3eaa06ac9b
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/scroll-snap-initial-layout-000-ref.html
@@ -0,0 +1,81 @@
+
+
+ CSS Scroll Snap Reference
+
+
+
+Test passes if there is an orange square precisely at the top left corner of each blue box (no gap),
+and each orange box is empty.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/scroll-snap-initial-layout-000.html b/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/scroll-snap-initial-layout-000.html
new file mode 100644
index 00000000000..ea47c9f36cc
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/scroll-snap-initial-layout-000.html
@@ -0,0 +1,113 @@
+
+
+ On-screen vs. Off-screen Snapped Initial Scroll Position (Mandatory and Proximity)
+
+
+
+
+
+
+
+
+
+Test passes if there is an orange square precisely at the top left corner of each blue box (no gap),
+and each orange box is empty.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/writing-mode-horizontal-tb.html b/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/writing-mode-horizontal-tb.html
index aa65dde1810..9a680d10d9f 100644
--- a/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/writing-mode-horizontal-tb.html
+++ b/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/writing-mode-horizontal-tb.html
@@ -20,10 +20,12 @@ div {
}
#close-target {
- width: 300px;
- height: 300px;
- top: 100px;
- left: 200px;
+ width: 200px;
+ height: 200px;
+ border: solid green 50px;
+ top: 50px;
+ left: 150px;
+ margin: 50px;
background-color: green;
scroll-snap-align: start end;
}
diff --git a/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/writing-mode-vertical-lr.html b/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/writing-mode-vertical-lr.html
index 898e64be619..f4de0411e05 100644
--- a/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/writing-mode-vertical-lr.html
+++ b/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/writing-mode-vertical-lr.html
@@ -20,10 +20,12 @@ div {
}
#close-target {
- width: 300px;
- height: 300px;
- top: 100px;
- left: 200px;
+ width: 200px;
+ height: 200px;
+ border: solid green 50px;
+ top: 50px;
+ left: 150px;
+ margin: 50px;
background-color: green;
scroll-snap-align: end start;
}
diff --git a/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/writing-mode-vertical-rl.html b/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/writing-mode-vertical-rl.html
index b3141f03f3c..1710bc16ddf 100644
--- a/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/writing-mode-vertical-rl.html
+++ b/tests/wpt/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/writing-mode-vertical-rl.html
@@ -23,10 +23,12 @@ div {
}
#close-target {
- width: 300px;
- height: 300px;
- top: 100px;
- left: 200px;
+ width: 200px;
+ height: 200px;
+ border: solid green 50px;
+ top: 50px;
+ left: 150px;
+ margin: 50px;
background-color: green;
scroll-snap-align: start;
}
diff --git a/tests/wpt/web-platform-tests/css/css-sizing/aspect-ratio/intrinsic-size-009.html b/tests/wpt/web-platform-tests/css/css-sizing/aspect-ratio/intrinsic-size-009.html
new file mode 100644
index 00000000000..139c4de6447
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-sizing/aspect-ratio/intrinsic-size-009.html
@@ -0,0 +1,13 @@
+
+CSS aspect-ratio: max-content size contribution with replaced element
+
+
+
+
+Test passes if there is a filled green square and no red.
+
+
+
+

+
+
diff --git a/tests/wpt/web-platform-tests/css/css-sizing/aspect-ratio/support/100x100-green.png b/tests/wpt/web-platform-tests/css/css-sizing/aspect-ratio/support/100x100-green.png
new file mode 100644
index 00000000000..25b76c3c6f2
Binary files /dev/null and b/tests/wpt/web-platform-tests/css/css-sizing/aspect-ratio/support/100x100-green.png differ
diff --git a/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-017.html b/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-017.html
new file mode 100644
index 00000000000..742e389950f
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-017.html
@@ -0,0 +1,33 @@
+
+
+CSS Text level 3 Test: handling trailing ideographic space sequence
+
+
+
+
+
+
+
+
+
+
+Test passes if there is a filled green square and no red.
+XX
XX
+X
diff --git a/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-018.html b/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-018.html
new file mode 100644
index 00000000000..16bb8767512
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-018.html
@@ -0,0 +1,33 @@
+
+
+CSS Text level 3 Test: handling trailing ideographic space sequence
+
+
+
+
+
+
+
+
+
+
+Test passes if there is a filled green square and no red.
+XX
XX
+X
XX
diff --git a/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-019.html b/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-019.html
new file mode 100644
index 00000000000..07070005120
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-019.html
@@ -0,0 +1,33 @@
+
+
+CSS Text level 3 Test: handling trailing ideographic space sequence
+
+
+
+
+
+
+
+
+
+
+Test passes if there is a filled green square and no red.
+XX
XX
+X
X
diff --git a/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-020.html b/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-020.html
new file mode 100644
index 00000000000..97ae007898b
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-020.html
@@ -0,0 +1,33 @@
+
+
+CSS Text level 3 Test: handling trailing ideographic space sequence
+
+
+
+
+
+
+
+
+
+
+Test passes if there is a filled green square and no red.
+XX
XX
+X
diff --git a/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-021.html b/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-021.html
new file mode 100644
index 00000000000..b75327a64ba
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-021.html
@@ -0,0 +1,33 @@
+
+
+CSS Text level 3 Test: handling trailing ideographic space sequence
+
+
+
+
+
+
+
+
+
+
+Test passes if there is a filled green square and no red.
+XX
XX
+X
XX
diff --git a/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-022.html b/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-022.html
new file mode 100644
index 00000000000..71720c2b2d7
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-022.html
@@ -0,0 +1,33 @@
+
+
+CSS Text level 3 Test: handling trailing ideographic space sequence
+
+
+
+
+
+
+
+
+
+
+Test passes if there is a filled green square and no red.
+XX
XX
+X
X
diff --git a/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-023.html b/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-023.html
new file mode 100644
index 00000000000..ea95ab1e0f2
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-023.html
@@ -0,0 +1,33 @@
+
+
+CSS Text level 3 Test: handling trailing ideographic space sequence
+
+
+
+
+
+
+
+
+
+
+Test passes if there is a filled green square and no red.
+XX
XX
+X
diff --git a/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-024.html b/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-024.html
new file mode 100644
index 00000000000..2a65400c600
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-024.html
@@ -0,0 +1,33 @@
+
+
+CSS Text level 3 Test: handling trailing ideographic space sequence
+
+
+
+
+
+
+
+
+
+
+Test passes if there is a filled green square and no red.
+XX
XX
+X
XX
diff --git a/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-025.html b/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-025.html
new file mode 100644
index 00000000000..5123e10524f
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/white-space/trailing-ideographic-space-025.html
@@ -0,0 +1,33 @@
+
+
+CSS Text level 3 Test: handling trailing ideographic space sequence
+
+
+
+
+
+
+
+
+
+
+Test passes if there is a filled green square and no red.
+XX
XX
+X
X
diff --git a/tests/wpt/web-platform-tests/css/selectors/focus-visible-011.html b/tests/wpt/web-platform-tests/css/selectors/focus-visible-011.html
index d45f5d8ed0f..b0daf34ba8d 100644
--- a/tests/wpt/web-platform-tests/css/selectors/focus-visible-011.html
+++ b/tests/wpt/web-platform-tests/css/selectors/focus-visible-011.html
@@ -45,6 +45,7 @@
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/webrtc/RTCDataChannel-iceRestart.html b/tests/wpt/web-platform-tests/webrtc/RTCDataChannel-iceRestart.html
new file mode 100644
index 00000000000..648c11b66a4
--- /dev/null
+++ b/tests/wpt/web-platform-tests/webrtc/RTCDataChannel-iceRestart.html
@@ -0,0 +1,39 @@
+
+
+
+RTCDataChannel interactions with ICE restart
+
+
+
+