Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: LayoutTests/media/video-element-other-namespace-crash.html

Issue 6222002: Merge 74984 - Merge 74787 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/media/video-element-other-namespace-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <script> 2 <script>
3 if (window.layoutTestController) 3 if (window.layoutTestController)
4 { 4 {
5 layoutTestController.dumpAsText(); 5 layoutTestController.dumpAsText();
6 layoutTestController.waitUntilDone(); 6 layoutTestController.waitUntilDone();
7 } 7 }
8 8
9 function runTest() 9 function runTest()
10 { 10 {
11 frame = document.body.appendChild(document.createElement('iframe')); 11 frame = document.body.appendChild(document.createElement('iframe'));
12 frame.onload = function() { 12 frame.onload = function() {
13 frame.onload = null; 13 frame.onload = null;
14 container = frame.contentDocument.body.appendChild(frame.contentDocument .createElement('div')); 14 container = frame.contentDocument.body.appendChild(frame.contentDocument .createElement('div'));
15 otherVideo = container.appendChild(frame.contentDocument.createElementNS ('other', 'video')); 15 otherVideo = container.appendChild(frame.contentDocument.createElementNS ('other', 'video'));
16 event = frame.contentDocument.createEvent('KeyboardEvents'); 16 event = frame.contentDocument.createEvent('KeyboardEvents');
17 event.initKeyboardEvent('keydown', 1, 1, frame.contentWindow, 'U+0020'); 17 event.initKeyboardEvent('keydown', 1, 1, frame.contentWindow, 'U+0020');
18 container.dispatchEvent(event); 18 container.dispatchEvent(event);
19 19
20 document.body.appendChild(document.createTextNode('PASS, did not crash.' )); 20 document.body.appendChild(document.createTextNode('PASS, did not crash.' ));
21 if (window.layoutTestController) 21 if (window.layoutTestController)
22 layoutTestController.notifyDone(); 22 layoutTestController.notifyDone();
23 } 23 }
24 24
25 frame.src = 'content/test.mp4'; 25 frame.src = 'content/test.mp4';
26 } 26 }
27 </script> 27 </script>
28 <body onload="runTest()"/> 28 <body onload="runTest()"/>
29 </html> 29 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/media/video-element-other-namespace-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698