OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../resources/testharness.js"></script> | |
3 <script src="../../resources/testharnessreport.js"></script> | |
4 | |
5 <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.
| |
6 | |
7 <script> | |
8 target1.style.backgroundImage = "-webkit-cross-fade(url(images1.jpg), url(imag es2.jpg), 0.5)"; | |
9 test(function() { | |
10 assert_not_equals(target1.style.backgroundImage, getComputedStyle(target1).b ackgroundImage); | |
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.
| |
11 assert_equals(target1.style.backgroundImage, "-webkit-cross-fade(url(images1 .jpg), url(images2.jpg), 0.5)"); | |
12 }, 'Testing that getComputedStyle.backgroundImage returns absolute URLs and st yle.backgroundImage returns relative URLs'); | |
13 </script> | |
OLD | NEW |