[iOS] Add iOS-specific tests and consolidate iOS-specific accessibility tests
[WebKit-https.git] / LayoutTests / platform / ios-simulator / ios / plugin / youtube-flash-plugin-iframe-no-height-or-width.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../../resources/js-test-pre.js"></script>
5 <script>
6 if (window.testRunner) {
7     testRunner.waitUntilDone();
8     testRunner.dumpAsText();
9 }
10
11 description(
12     'Test embed youtube plugin without height or width attribute. &lt;<a href="rdar://problem/12134474"> rdar://problem/12134474</a>&gt;'
13 );
14
15 function Test()
16 {
17     setTimeout(function() {
18         embedNoHeight = document.getElementById('embed-no-height');
19         shouldBe('getComputedStyle(embedNoHeight).height', '"150px"')
20
21         embedNoWidth = document.getElementById('embed-no-width');
22         shouldBe('getComputedStyle(embedNoWidth).width', '"300px"')
23
24         embedNoWidthHeight = document.getElementById('embed-no-width-or-height');
25         shouldBe('getComputedStyle(embedNoWidthHeight).width', '"300px"');
26         shouldBe('getComputedStyle(embedNoWidthHeight).height', '"150px"');
27
28         objectNoHeight = document.getElementById('object-no-height');
29         shouldBe('getComputedStyle(objectNoHeight).height', '"150px"')
30
31         objectNoWidth = document.getElementById('object-no-width');
32         shouldBe('getComputedStyle(objectNoWidth).width', '"300px"')
33
34         objectNoWidthHeight = document.getElementById('object-no-width-or-height');
35         shouldBe('getComputedStyle(objectNoWidthHeight).width', '"300px"');
36         shouldBe('getComputedStyle(objectNoWidthHeight).height', '"150px"');
37
38         var successfullyParsed = true;
39         testRunner.notifyDone();
40     }, 100);
41 }
42 </script>
43 </head>
44 <body onLoad="Test()">
45 <p id="description"></p>
46 <div id="console"></div>
47
48 <p>Embed without height:<br><embed id='embed-no-height' src="http://www.youtube.com/v/N0gb9v4LI4o" type="application/x-shockwave-flash" width="425"></p>
49 <p>Embed without width:<br><embed id='embed-no-width' src="http://www.youtube.com/v/N0gb9v4LI4o" type="application/x-shockwave-flash" height="350"></p>
50 <p>Embed without width or height:<br><embed id='embed-no-width-or-height' src="http://www.youtube.com/v/N0gb9v4LI4o" type="application/x-shockwave-flash"</p>
51
52 <p>Object without height:<br><object id='object-no-height' width="425" type="application/x-shockwave-flash" data="http://www.youtube.com/v/N0gb9v4LI4o?version=3&amp;hl=en_US"></object>
53 <p>Object without width:<br><object id='object-no-width' height="350" type="application/x-shockwave-flash" data="http://www.youtube.com/v/N0gb9v4LI4o?version=3&amp;hl=en_US"></object>
54 <p>Object without height or width:<br><object id='object-no-width-or-height' type="application/x-shockwave-flash" data="http://www.youtube.com/v/N0gb9v4LI4o?version=3&amp;hl=en_US"></object>
55
56 <script src="../../../../resources/js-test-post.js"></script>
57 </body>
58 </html>