Index: third_party/WebKit/LayoutTests/loader/image-loader-base.html |
diff --git a/third_party/WebKit/LayoutTests/loader/image-loader-base.html b/third_party/WebKit/LayoutTests/loader/image-loader-base.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2488618a6f576143621363bfc4bea60c8656410f |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/loader/image-loader-base.html |
@@ -0,0 +1,32 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<title>base element test </title> |
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+</head> |
+<body> |
+Test for bugs.chromium.org #569760: <br/> |
+<img id="img1" ><br/> |
+<script> |
+var test = async_test('image loading should be loaded successfully regardless of base element'); |
+ |
+test.step(function () { |
+ var elm = document.getElementById('img1'); |
+ elm.src = 'resources/image1.png'; |
Yoav Weiss
2016/07/19 06:15:17
shouldn't that say "image1.png"?
Yoav Weiss
2016/07/19 09:15:29
OK, I somehow thought the issue is the inverse (pr
|
+ elm.onerror = test.step_func(function () { |
+ assert_unreached(" onerror() of image."); |
Yoav Weiss
2016/07/19 09:15:29
spurious " " at beginning of sentence
kyounga.ra
2016/07/19 23:55:37
Done.
|
+ test.done(); |
+ }); |
+ elm.onload = test.step_func(function () { |
+ assert_true(true, " Loaded successfully."); |
Yoav Weiss
2016/07/19 09:15:29
spurious " " at beginning of sentence
kyounga.ra
2016/07/19 23:55:37
Done.
|
+ test.done(); |
+ }); |
+ |
+ var base = document.createElement("base"); |
+ base.setAttribute("href", "resources/"); |
+ document.head.appendChild(base); |
+}); |
+</script> |
+</body> |
+</html> |