Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLImageElement / image-lowsrc-getset.html
blobb363eeec167e491b0f6fdc9271962b58d40aa3a6
1 <html>
2 <head>
3 <script src="../../../resources/js-test.js"></script>
4 </head>
5 <body>
6 <img id="image" lowsrc="http://hostname/lowsrc.png" style="visibility: hidden;">
7 <script>
8 description("This test checks that the lowsrc attribute of img tags are accessible via JavaScript.");
9 var image = document.getElementById('image');
10 shouldBe("image.lowsrc", "'http://hostname/lowsrc.png'");
11 image.lowsrc = "http://hostname/newlowsrc.png";
12 shouldBe("image.lowsrc", "'http://hostname/newlowsrc.png'");
13 </script>
14 </body>
15 </html>