[paint-timing] Move tests that use first-paint to subfolder (#26181)
Co-authored-by: Noam Rosenthal <noam@webkit.org>
diff --git a/paint-timing/basetest.html b/paint-timing/with-first-paint/basetest.html
similarity index 100%
rename from paint-timing/basetest.html
rename to paint-timing/with-first-paint/basetest.html
diff --git a/paint-timing/border-image.html b/paint-timing/with-first-paint/border-image.html
similarity index 93%
rename from paint-timing/border-image.html
rename to paint-timing/with-first-paint/border-image.html
index 4614fec..7818b0e 100644
--- a/paint-timing/border-image.html
+++ b/paint-timing/with-first-paint/border-image.html
@@ -2,7 +2,7 @@
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
-<script src="resources/utils.js"></script>
+<script src="../resources/utils.js"></script>
<style>
#bordered {
width: 100px;
diff --git a/paint-timing/buffered-flag.window.js b/paint-timing/with-first-paint/buffered-flag.window.js
similarity index 100%
rename from paint-timing/buffered-flag.window.js
rename to paint-timing/with-first-paint/buffered-flag.window.js
diff --git a/paint-timing/child-painting-first-image.html b/paint-timing/with-first-paint/child-painting-first-image.html
similarity index 100%
rename from paint-timing/child-painting-first-image.html
rename to paint-timing/with-first-paint/child-painting-first-image.html
diff --git a/paint-timing/first-contentful-bg-image.html b/paint-timing/with-first-paint/first-contentful-bg-image.html
similarity index 95%
rename from paint-timing/first-contentful-bg-image.html
rename to paint-timing/with-first-paint/first-contentful-bg-image.html
index 00224b3..40eaa63 100644
--- a/paint-timing/first-contentful-bg-image.html
+++ b/paint-timing/with-first-paint/first-contentful-bg-image.html
@@ -14,7 +14,7 @@
async_test(function (t) {
assert_implements(window.PerformancePaintTiming, "Paint Timing isn't supported.");
const body = document.getElementsByTagName('body')[0];
- body.style.backgroundImage = 'url(resources/circles.png)';
+ body.style.backgroundImage = 'url(../resources/circles.png)';
window.onload = function() {
function testPaintEntries() {
const bufferedEntries = performance.getEntriesByType('paint');
diff --git a/paint-timing/first-contentful-canvas-webgl2.html b/paint-timing/with-first-paint/first-contentful-canvas-webgl2.html
similarity index 100%
rename from paint-timing/first-contentful-canvas-webgl2.html
rename to paint-timing/with-first-paint/first-contentful-canvas-webgl2.html
diff --git a/paint-timing/first-contentful-canvas.html b/paint-timing/with-first-paint/first-contentful-canvas.html
similarity index 100%
rename from paint-timing/first-contentful-canvas.html
rename to paint-timing/with-first-paint/first-contentful-canvas.html
diff --git a/paint-timing/first-contentful-image.html b/paint-timing/with-first-paint/first-contentful-image.html
similarity index 100%
rename from paint-timing/first-contentful-image.html
rename to paint-timing/with-first-paint/first-contentful-image.html
diff --git a/paint-timing/first-contentful-paint.html b/paint-timing/with-first-paint/first-contentful-paint.html
similarity index 100%
rename from paint-timing/first-contentful-paint.html
rename to paint-timing/with-first-paint/first-contentful-paint.html
diff --git a/paint-timing/first-contentful-svg.html b/paint-timing/with-first-paint/first-contentful-svg.html
similarity index 96%
rename from paint-timing/first-contentful-svg.html
rename to paint-timing/with-first-paint/first-contentful-svg.html
index c68e72c..74799a2 100644
--- a/paint-timing/first-contentful-svg.html
+++ b/paint-timing/with-first-paint/first-contentful-svg.html
@@ -12,7 +12,7 @@
async_test(function (t) {
assert_implements(window.PerformancePaintTiming, "Paint Timing isn't supported.");
const img = document.createElement("IMG");
- img.src = "resources/circle.svg";
+ img.src = "../resources/circle.svg";
img.onload = function() {
function testPaintEntries() {
const bufferedEntries = performance.getEntriesByType('paint');
diff --git a/paint-timing/first-image-child.html b/paint-timing/with-first-paint/first-image-child.html
similarity index 93%
rename from paint-timing/first-image-child.html
rename to paint-timing/with-first-paint/first-image-child.html
index d707d43..5c24527 100644
--- a/paint-timing/first-image-child.html
+++ b/paint-timing/with-first-paint/first-image-child.html
@@ -6,8 +6,8 @@
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
-<iframe src='resources/subframe-sending-paint.html' id='child-iframe'></iframe>
-<img src='resources/circles.png'/>
+<iframe src='../resources/subframe-sending-paint.html' id='child-iframe'></iframe>
+<img src='../resources/circles.png'/>
<script>
setup({"hide_test_state": true});
async_test(function (t) {
diff --git a/paint-timing/first-paint-bg-color.html b/paint-timing/with-first-paint/first-paint-bg-color.html
similarity index 100%
rename from paint-timing/first-paint-bg-color.html
rename to paint-timing/with-first-paint/first-paint-bg-color.html
diff --git a/paint-timing/first-paint-only.html b/paint-timing/with-first-paint/first-paint-only.html
similarity index 100%
rename from paint-timing/first-paint-only.html
rename to paint-timing/with-first-paint/first-paint-only.html
diff --git a/paint-timing/mask-image.html b/paint-timing/with-first-paint/mask-image.html
similarity index 93%
rename from paint-timing/mask-image.html
rename to paint-timing/with-first-paint/mask-image.html
index d022f43..05f4b9e 100644
--- a/paint-timing/mask-image.html
+++ b/paint-timing/with-first-paint/mask-image.html
@@ -2,7 +2,7 @@
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
-<script src="resources/utils.js"></script>
+<script src="../resources/utils.js"></script>
<style>
#masked {
width: 0px;
diff --git a/paint-timing/paint-visited.html b/paint-timing/with-first-paint/paint-visited.html
similarity index 100%
rename from paint-timing/paint-visited.html
rename to paint-timing/with-first-paint/paint-visited.html
diff --git a/paint-timing/sibling-painting-first-image.html b/paint-timing/with-first-paint/sibling-painting-first-image.html
similarity index 96%
rename from paint-timing/sibling-painting-first-image.html
rename to paint-timing/with-first-paint/sibling-painting-first-image.html
index 096c49a..4ad6258 100644
--- a/paint-timing/sibling-painting-first-image.html
+++ b/paint-timing/with-first-paint/sibling-painting-first-image.html
@@ -49,6 +49,6 @@
}, 'Frame ignores paint-timing events fired from sibling frame.');
</script>
<!-- This iframe is where all of the painting occurs. -->
-<iframe id="painting-iframe" src="resources/subframe-painting.html"></iframe>
+<iframe id="painting-iframe" src="../resources/subframe-painting.html"></iframe>
</body>
</html>