Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / images / content-image-change.html
blob8e6f2eb6ee7131a2308fa769f24e1b2a4f8212b2
1 <!DOCTYPE>
2 <html>
3 <head>
4 <title>Image layer content change</title>
6 <style type="text/css" media="screen">
7 #image {
8 width: 200px;
9 height: 200px;
10 transform: translateZ(0);
12 </style>
13 <script type="text/javascript" charset="utf-8">
14 if (window.testRunner) {
15 testRunner.waitUntilDone();
16 testRunner.dumpAsTextWithPixelResults();
18 function doTest()
20 var image = document.getElementById("image");
22 window.setTimeout(function() {
23 // Change the contents to green.
24 image.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gwCFjAZKJ+zhAAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAFySURBVHja7dIxEQAACMSwB/+ewQQDQyKh18oEzrUEGAtjYSwwFsbCWGAsjIWxwFgYC2OBsTAWxgJjYSyMBcbCWBgLjIWxMBYYC2NhLDAWxsJYYCyMhbHAWBgLY4GxMBbGAmNhLIwFxsJYGAuMhbEwFhgLY2EsMBbGwlhgLIyFscBYGAtjgbEwFsYCY2EsjAXGwlgYC4yFsTAWGAtjYSwwFsbCWGAsjIWxwFgYC2OBsTAWxsJYYCyMhbHAWBgLY4GxMBbGAmNhLIwFxsJYGAuMhbEwFhgLY2EsMBbGwlhgLIyFscBYGAtjgbEwFsYCY2EsjAXGwlgYC4yFsTAWGAtjYSwwFsbCWGAsjIWxwFgYC2OBsTAWxgJjYSyMBcbCWBgLjIWxMBYYC2NhLDAWxsJYYCyMhbHAWBgLY4GxMBbGAmNhLIyFscBYGAtjgbEwFsYCY2EsjAXGwlgYC4yFsTAWGAtjYSwwFsbCWGAsjIWxwFh8s4k+Ao/85tbzAAAAAElFTkSuQmCC";
25 if (window.testRunner) {
26 window.setTimeout(function() {
27 testRunner.notifyDone();
28 }, 0);
30 }, 0);
33 window.addEventListener('load', doTest, false);
34 </script>
35 </head>
36 <body>
37 <!-- When the test is done, there should only be a green square on the page -->
39 <!-- Start with a red image -->
40 <img id="image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADElEQVR4nGP4z8AAAAMBAQDJ/pLvAAAAAElFTkSuQmCC" />
42 </body>
43 </html>