summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
authorbrg@chromium.com <brg@chromium.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-23 00:02:44 +0000
committerbrg@chromium.com <brg@chromium.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-23 00:02:44 +0000
commit1ebed56434c220f82cf220bbb72a136fea962c87 (patch)
tree7058028de7d017612d46ee49ba27b497c89cea7a /chrome/test
parent3c4d38386f27b5fc4a7a8db717ea114725c34b4a (diff)
downloadchromium_src-1ebed56434c220f82cf220bbb72a136fea962c87.zip
chromium_src-1ebed56434c220f82cf220bbb72a136fea962c87.tar.gz
chromium_src-1ebed56434c220f82cf220bbb72a136fea962c87.tar.bz2
Changes to insure that when in app-mode, links open in the default browser. This change should have no affect on Chrome when not in app-mode.Tested against Gmail. UITests added as app_mode_navigation_uitest.
Review URL: http://codereview.chromium.org/18093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8523 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/data/appmodenavigation_test.html21
-rw-r--r--chrome/test/ui/ui_tests.vcproj8
2 files changed, 29 insertions, 0 deletions
diff --git a/chrome/test/data/appmodenavigation_test.html b/chrome/test/data/appmodenavigation_test.html
new file mode 100644
index 0000000..c938dc6
--- /dev/null
+++ b/chrome/test/data/appmodenavigation_test.html
@@ -0,0 +1,21 @@
+<html>
+<head>
+<Script Language="JavaScript">
+function load() {
+ w = window.open();
+ w.opener=null;
+ w.document.location='http://www.google.com';
+ w();
+}
+</Script>
+</head>
+<body>
+<a href="http://www.google.com" target=_blank> Link Test </a>
+<p>
+<div onclick='load()'>
+<a href=""> OnClick Test </a>
+</div>
+<p>
+<a href="about:blank"> Normal Test</a>
+</body>
+</html>
diff --git a/chrome/test/ui/ui_tests.vcproj b/chrome/test/ui/ui_tests.vcproj
index e225613..311bc95 100644
--- a/chrome/test/ui/ui_tests.vcproj
+++ b/chrome/test/ui/ui_tests.vcproj
@@ -542,6 +542,14 @@
>
</File>
</Filter>
+ <Filter
+ Name="TestAppModeNavigation"
+ >
+ <File
+ RelativePath="..\..\browser\app_mode_navigation_uitest.cc"
+ >
+ </File>
+ </Filter>
</Files>
<Globals>
</Globals>