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

Unified Diff: chrome_frame/test/data/window_open.html

Issue 2822016: [chrome_frame] Refactor/merge IE no interference tests with other mock event ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/test/data/simple.html ('k') | chrome_frame/test/ie_event_sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/data/window_open.html
===================================================================
--- chrome_frame/test/data/window_open.html (revision 0)
+++ chrome_frame/test/data/window_open.html (revision 0)
@@ -0,0 +1,24 @@
+<html>
+ <head>
+ <script type="text/javascript">
+ var new_window;
+
+ function OnDblClick() {
+ // Open popup to the url from the given query string.
+ var url = window.location.search.substring(1);
+ new_window = window.open(url, "_blank",
+ "left=10, top=10, height=250, width=250");
+ }
+
+ function OnKeyPress() {
+ var char_code = String.fromCharCode(event.keyCode);
+ if (char_code == 'C') {
+ new_window.close();
+ }
+ }
+ </script>
+ </head>
+ <body onkeypress="OnKeyPress();" ondblclick="OnDblClick();">
+ ChromeFrame full tab mode window open popup test
+ </body>
+</html>
Property changes on: chrome_frame\test\data\window_open.html
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome_frame/test/data/simple.html ('k') | chrome_frame/test/ie_event_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698