Index: LayoutTests/fast/css/getComputedStyle-relativeURL.html |
diff --git a/LayoutTests/fast/css/getComputedStyle-relativeURL.html b/LayoutTests/fast/css/getComputedStyle-relativeURL.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d684f5fa9c3f69f2dc7ad73b98432f4cefa1ff90 |
--- /dev/null |
+++ b/LayoutTests/fast/css/getComputedStyle-relativeURL.html |
@@ -0,0 +1,13 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+ |
+<div id = "target1"></div> |
alancutter (OOO until 2018)
2015/09/21 00:57:47
s/target1/target/
Spaces around the = is inconsist
nainar
2015/09/21 01:27:36
Done.
|
+ |
+<script> |
+ target1.style.backgroundImage = "-webkit-cross-fade(url(images1.jpg), url(images2.jpg), 0.5)"; |
+ test(function() { |
+ assert_not_equals(target1.style.backgroundImage, getComputedStyle(target1).backgroundImage); |
alancutter (OOO until 2018)
2015/09/21 00:57:47
This is a fairly weak assertion. You can build the
nainar
2015/09/21 01:27:36
Done.
|
+ assert_equals(target1.style.backgroundImage, "-webkit-cross-fade(url(images1.jpg), url(images2.jpg), 0.5)"); |
+ }, 'Testing that getComputedStyle.backgroundImage returns absolute URLs and style.backgroundImage returns relative URLs'); |
+</script> |