summaryrefslogtreecommitdiff
path: root/image/test
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-05-11 23:17:47 +0000
committerMoonchild <moonchild@palemoon.org>2020-05-11 23:17:47 +0000
commit0f590122c5474b0b6fb66dccab0cc24f38d63bc4 (patch)
treeb40d7888b732fa4f8941e0fc0d8eff0e439b984e /image/test
parent221627575b56e8bb85e8329400da99138f2f67c1 (diff)
downloaduxp-0f590122c5474b0b6fb66dccab0cc24f38d63bc4.tar.gz
Issue #1543 - Align <img> with no src to the updated spec.
Diffstat (limited to 'image/test')
-rw-r--r--image/test/crashtests/delaytest.html3
-rw-r--r--image/test/mochitest/green-background.html3
-rw-r--r--image/test/reftest/apng/delaytest.html3
-rw-r--r--image/test/reftest/bmp/bmp-corrupted/wrapper.html4
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/wrapper.html4
-rw-r--r--image/test/reftest/bmp/bmpsuite/q/wrapper.html4
-rw-r--r--image/test/reftest/downscaling/downscale-16px.html4
-rw-r--r--image/test/reftest/downscaling/downscale-8px.html3
-rw-r--r--image/test/reftest/gif/delaytest.html3
-rw-r--r--image/test/reftest/ico/cur/wrapper.html3
-rw-r--r--image/test/reftest/ico/ico-bmp-corrupted/wrapper.html4
-rw-r--r--image/test/reftest/ico/ico-png/wrapper.html4
-rw-r--r--image/test/reftest/pngsuite-background/wrapper.html3
-rw-r--r--image/test/reftest/pngsuite-corrupted/wrapper.html4
-rw-r--r--image/test/reftest/pngsuite-transparency/wrapper.html3
15 files changed, 30 insertions, 22 deletions
diff --git a/image/test/crashtests/delaytest.html b/image/test/crashtests/delaytest.html
index 00cd1ebd11..762aec7891 100644
--- a/image/test/crashtests/delaytest.html
+++ b/image/test/crashtests/delaytest.html
@@ -4,7 +4,8 @@
<title>Delayed image reftest wrapper</title>
</head>
<body>
-<img id="image1">
+<!-- non-empty alt to avoid the broken image icon -->
+<img id="image1" alt=" ">
<script>
// This loads a externally specified image, forces a draw (in case of
// decode-on-draw), waits 350ms, and then triggers the reftest snapshot.
diff --git a/image/test/mochitest/green-background.html b/image/test/mochitest/green-background.html
index afc3c206e4..6b4518e734 100644
--- a/image/test/mochitest/green-background.html
+++ b/image/test/mochitest/green-background.html
@@ -9,7 +9,8 @@ img {
</style>
</head>
<body>
-<img id="image1">
+<!-- non-empty alt to avoid the broken image icon -->
+<img id="image1" alt=" ">
<script>
// Loads an externally specified image and displays it
// with a green background. Intended for use with tests
diff --git a/image/test/reftest/apng/delaytest.html b/image/test/reftest/apng/delaytest.html
index af3937a570..4a0b935d9a 100644
--- a/image/test/reftest/apng/delaytest.html
+++ b/image/test/reftest/apng/delaytest.html
@@ -4,7 +4,8 @@
<title>Delayed image reftest wrapper</title>
</head>
<body>
-<img id="image1">
+<!-- non-empty alt to avoid the broken image icon -->
+<img id="image1" alt=" ">
<script>
// This loads a externally specified image, forces a draw (in case of
// decode-on-draw), waits 100ms, and then triggers the reftest snapshot.
diff --git a/image/test/reftest/bmp/bmp-corrupted/wrapper.html b/image/test/reftest/bmp/bmp-corrupted/wrapper.html
index 47e68959fd..22b74c8fc1 100644
--- a/image/test/reftest/bmp/bmp-corrupted/wrapper.html
+++ b/image/test/reftest/bmp/bmp-corrupted/wrapper.html
@@ -14,13 +14,13 @@
</script>
</head>
<body>
-<img id="image1">
+<!-- non-empty alt to avoid the broken image icon -->
+<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png"
var imgURL = document.location.search.substr(1);
document.images[0].onload = onImageLoad;
document.images[0].onerror = onImageLoad;
- document.images[0].alt = "";
document.images[0].src = imgURL;
</script>
</body>
diff --git a/image/test/reftest/bmp/bmpsuite/b/wrapper.html b/image/test/reftest/bmp/bmpsuite/b/wrapper.html
index 47e68959fd..22b74c8fc1 100644
--- a/image/test/reftest/bmp/bmpsuite/b/wrapper.html
+++ b/image/test/reftest/bmp/bmpsuite/b/wrapper.html
@@ -14,13 +14,13 @@
</script>
</head>
<body>
-<img id="image1">
+<!-- non-empty alt to avoid the broken image icon -->
+<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png"
var imgURL = document.location.search.substr(1);
document.images[0].onload = onImageLoad;
document.images[0].onerror = onImageLoad;
- document.images[0].alt = "";
document.images[0].src = imgURL;
</script>
</body>
diff --git a/image/test/reftest/bmp/bmpsuite/q/wrapper.html b/image/test/reftest/bmp/bmpsuite/q/wrapper.html
index 47e68959fd..22b74c8fc1 100644
--- a/image/test/reftest/bmp/bmpsuite/q/wrapper.html
+++ b/image/test/reftest/bmp/bmpsuite/q/wrapper.html
@@ -14,13 +14,13 @@
</script>
</head>
<body>
-<img id="image1">
+<!-- non-empty alt to avoid the broken image icon -->
+<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png"
var imgURL = document.location.search.substr(1);
document.images[0].onload = onImageLoad;
document.images[0].onerror = onImageLoad;
- document.images[0].alt = "";
document.images[0].src = imgURL;
</script>
</body>
diff --git a/image/test/reftest/downscaling/downscale-16px.html b/image/test/reftest/downscaling/downscale-16px.html
index b34adb93da..06d6db2bf6 100644
--- a/image/test/reftest/downscaling/downscale-16px.html
+++ b/image/test/reftest/downscaling/downscale-16px.html
@@ -14,13 +14,13 @@
</script>
</head>
<body>
-<img width="16px" height="16px" id="image1">
+<!-- non-empty alt to avoid the broken image icon -->
+<img width="16px" height="16px" id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png"
var imgURL = document.location.search.substr(1);
document.images[0].onload = onImageLoad;
document.images[0].onerror = onImageLoad;
- document.images[0].alt = "";
document.images[0].src = imgURL;
</script>
</body>
diff --git a/image/test/reftest/downscaling/downscale-8px.html b/image/test/reftest/downscaling/downscale-8px.html
index 32cb1b211b..fdc632e53b 100644
--- a/image/test/reftest/downscaling/downscale-8px.html
+++ b/image/test/reftest/downscaling/downscale-8px.html
@@ -14,7 +14,8 @@
</script>
</head>
<body>
-<img width="8px" id="image1">
+<!-- non-empty alt to avoid the broken image icon -->
+<img width="8px" id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png"
var imgURL = document.location.search.substr(1);
diff --git a/image/test/reftest/gif/delaytest.html b/image/test/reftest/gif/delaytest.html
index 58fb080f97..a6fc80f3ea 100644
--- a/image/test/reftest/gif/delaytest.html
+++ b/image/test/reftest/gif/delaytest.html
@@ -4,7 +4,8 @@
<title>Delayed image reftest wrapper</title>
</head>
<body>
-<img id="image1">
+<!-- non-empty alt to avoid the broken image icon -->
+<img id="image1" alt=" ">
<script>
// This loads a externally specified image, forces a draw (in case of
// decode-on-draw), waits 100ms, and then triggers the reftest snapshot.
diff --git a/image/test/reftest/ico/cur/wrapper.html b/image/test/reftest/ico/cur/wrapper.html
index 5bbe75e01c..45b5167754 100644
--- a/image/test/reftest/ico/cur/wrapper.html
+++ b/image/test/reftest/ico/cur/wrapper.html
@@ -14,7 +14,8 @@
</script>
</head>
<body>
-<img id="image1">
+<!-- non-empty alt to avoid the broken image icon -->
+<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png
var imgURL = document.location.search.substr(1);
diff --git a/image/test/reftest/ico/ico-bmp-corrupted/wrapper.html b/image/test/reftest/ico/ico-bmp-corrupted/wrapper.html
index 5935f3763c..56c1f79b36 100644
--- a/image/test/reftest/ico/ico-bmp-corrupted/wrapper.html
+++ b/image/test/reftest/ico/ico-bmp-corrupted/wrapper.html
@@ -51,7 +51,6 @@
// code.
var finalImg = document.getElementById('image1');
- finalImg.alt = "";
finalImg.onload = finalImg.onerror = step3;
finalImg.src = gImg.src;
}
@@ -68,7 +67,8 @@
</script>
</head>
<body>
-<img id="image1">
+<!-- non-empty alt to avoid the broken image icon -->
+<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png
gImg = document.createElement('img');
diff --git a/image/test/reftest/ico/ico-png/wrapper.html b/image/test/reftest/ico/ico-png/wrapper.html
index 0015856dfe..45b5167754 100644
--- a/image/test/reftest/ico/ico-png/wrapper.html
+++ b/image/test/reftest/ico/ico-png/wrapper.html
@@ -14,13 +14,13 @@
</script>
</head>
<body>
-<img id="image1">
+<!-- non-empty alt to avoid the broken image icon -->
+<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png
var imgURL = document.location.search.substr(1);
document.images[0].onload = onImageLoad;
document.images[0].onerror = onImageLoad;
- document.images[0].alt = "";
document.images[0].src = imgURL;
</script>
</body>
diff --git a/image/test/reftest/pngsuite-background/wrapper.html b/image/test/reftest/pngsuite-background/wrapper.html
index 5bbe75e01c..45b5167754 100644
--- a/image/test/reftest/pngsuite-background/wrapper.html
+++ b/image/test/reftest/pngsuite-background/wrapper.html
@@ -14,7 +14,8 @@
</script>
</head>
<body>
-<img id="image1">
+<!-- non-empty alt to avoid the broken image icon -->
+<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png
var imgURL = document.location.search.substr(1);
diff --git a/image/test/reftest/pngsuite-corrupted/wrapper.html b/image/test/reftest/pngsuite-corrupted/wrapper.html
index 0015856dfe..45b5167754 100644
--- a/image/test/reftest/pngsuite-corrupted/wrapper.html
+++ b/image/test/reftest/pngsuite-corrupted/wrapper.html
@@ -14,13 +14,13 @@
</script>
</head>
<body>
-<img id="image1">
+<!-- non-empty alt to avoid the broken image icon -->
+<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png
var imgURL = document.location.search.substr(1);
document.images[0].onload = onImageLoad;
document.images[0].onerror = onImageLoad;
- document.images[0].alt = "";
document.images[0].src = imgURL;
</script>
</body>
diff --git a/image/test/reftest/pngsuite-transparency/wrapper.html b/image/test/reftest/pngsuite-transparency/wrapper.html
index 5bbe75e01c..45b5167754 100644
--- a/image/test/reftest/pngsuite-transparency/wrapper.html
+++ b/image/test/reftest/pngsuite-transparency/wrapper.html
@@ -14,7 +14,8 @@
</script>
</head>
<body>
-<img id="image1">
+<!-- non-empty alt to avoid the broken image icon -->
+<img id="image1" alt=" ">
<script>
// Use as "wrapper.html?image.png
var imgURL = document.location.search.substr(1);