summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/ssl/top_frame.html
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-24 17:42:42 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-24 17:42:42 +0000
commit8a3422c9488ce79e305973d29a01811762e35465 (patch)
tree7fc94cb7aa013f7bb2afaf4100b1a8f45208cc00 /chrome/test/data/ssl/top_frame.html
parent5eb64653873981c7dbf693a9aba7c7da011b14a3 (diff)
downloadchromium_src-8a3422c9488ce79e305973d29a01811762e35465.zip
chromium_src-8a3422c9488ce79e305973d29a01811762e35465.tar.gz
chromium_src-8a3422c9488ce79e305973d29a01811762e35465.tar.bz2
This CL adds new UI tests for the SSL UI.
Some more info: SSL UI Tests: Added new tests for redirects and frames. Also improved the mixed-content test to exercise the "block mixed-contents" preference and the show info-bar. Automation: For the new UI tests, added methods to tab_proxy and browser_proxy. The ones of most interest are GetLastNavigatinTime and WaitForNavigation that ensures we wait for a navigation to occur or have occured when taking actions that asynchronously trigger navigations. Resource loading: Added a flag to the response we get when loading a resource that indicates whether that resource was filtered (blocked or altered) by the security peer. We use this flag to notify back the browser when we report a load has been committed. This is so the SSL manager knows a frame has been filtered (in which case we have no cert info but should not consider that as unsafe). BUG=2004 Review URL: http://codereview.chromium.org/3165 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2553 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data/ssl/top_frame.html')
-rw-r--r--chrome/test/data/ssl/top_frame.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/chrome/test/data/ssl/top_frame.html b/chrome/test/data/ssl/top_frame.html
new file mode 100644
index 0000000..ac5c144
--- /dev/null
+++ b/chrome/test/data/ssl/top_frame.html
@@ -0,0 +1,25 @@
+<html>
+ <head><title>This is a test page with frames</title>
+ <script>
+ function simulateClick(target) {
+ var evt = document.createEvent("MouseEvents");
+ evt.initMouseEvent("click", true, true, window,
+ 0, 0, 0, 0, 0, false, false,
+ false, false, 0, null);
+
+ return target.dispatchEvent(evt);
+ }
+
+ function clickLink(linkID) {
+ target = frames['navFrame'].document.getElementById(linkID);
+ if (target == null)
+ alert("clickLink failed for id=" + linkID);
+ return simulateClick(target);
+ }
+ </script>
+ </head>
+ <frameset cols="25%,75%">
+ <frame src="frame_left.html" name="navFrame">
+ <frame src="frame_right.html" name="contentFrame">
+ </frameset>
+</html>