upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / fast / css / shorthand-mismatched-list-crash.html
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Test for WebKit bug 31559: Crash with mismatched lists and shorthands.</title>
5 <script src="../js/resources/js-test-pre.js"></script>
6 </head>
7 <body>
8   <p id="description">Test for WebKit bug <a href="https://bugs.webkit.org/show_bug.cgi?id=31559">31559</a>: Crash with mismatched lists and shorthands.</p>
9   <div id="console"></div>
10
11   <div id="test"></div>
12
13 <script>
14   var para = document.getElementById('test');
15   
16   // Test longer shorthand
17   para.style.webkitTransition = 'width 1s, left 1s, top 1s';
18   para.style.webkitTransitionProperty = 'width, left';
19
20   shouldBeEqualToString("para.style.webkitTransition", "width 1s, left 1s, 1s");
21
22   // Test shorter shorthand
23   para.style.webkitTransition = 'width 1s, left 1s';
24   para.style.webkitTransitionProperty = 'width, left, top';
25
26   // the next line will crash
27   shouldBeEqualToString("para.style.webkitTransition", "width 1s, left 1s, top");
28 </script>
29 <script src="../js/resources/js-test-post.js"></script>
30 </body>
31 </html>