StorageAccess API calls should be direct to the Network Process
[WebKit-https.git] / LayoutTests / transitions / equivalent-background-image-no-transition.html
1 <html>
2 <head>
3     <style>
4     #foo {
5         -webkit-transition: all 0.05s linear, top 0.1s linear;
6         position: absolute;
7         top: 30px;
8         left: 10px;
9         width: 300px;
10         height: 300px;
11         background-image: -webkit-linear-gradient(red, green, blue);
12     }
13     #foo.trans {
14         top: 40px;
15     }
16     </style>
17     <script>
18     if (window.testRunner) {
19         testRunner.dumpAsText();
20         testRunner.waitUntilDone();
21     }
22     </script>
23 </head>
24 <body>
25     <div id="foo">This should not fire a background-image transition.</div>
26
27     <script type="text/javascript" charset="utf-8">
28
29     var finished = false;
30
31     document.getElementById('foo').addEventListener('webkitTransitionEnd', function(evt) {
32         if(evt.propertyName == "background-image" && !finished) {
33             document.getElementById('result').innerHTML = ("FAIL: saw a background-image transition");
34             if (window.testRunner)
35                 testRunner.notifyDone();
36             finished = true;
37         } else if(evt.propertyName == "top" && !finished) {
38             document.getElementById('result').innerHTML = ("PASS: no background-image transition");
39             if (window.testRunner)
40                 testRunner.notifyDone();
41         }
42     });
43
44     setTimeout(function() { document.getElementById("foo").className="trans" }, 0);
45     </script>
46
47     <div id="result">
48     </div>
49 </body>
50 </html>