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

Unified Diff: chrome/test/data/extensions/platform_apps/navigation/main.js

Issue 10920084: don't display platform app resources in normal browser windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: self review Created 8 years, 3 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
Index: chrome/test/data/extensions/platform_apps/navigation/main.js
diff --git a/chrome/test/data/extensions/platform_apps/navigation/main.js b/chrome/test/data/extensions/platform_apps/navigation/main.js
index 6a9f5758f1254e6174a2a33dc21e04c7444b648f..63a2e5c783a2b72faa55f58aa52efd83ab3dfcea 100644
--- a/chrome/test/data/extensions/platform_apps/navigation/main.js
+++ b/chrome/test/data/extensions/platform_apps/navigation/main.js
@@ -56,6 +56,15 @@ chrome.test.getConfig(function(config) {
function() { testLink.href = IN_APP_URL; clickTestLink(); },
function() { testLink.href = REMOTE_URL; clickTestLink(); },
+ // Links with target blank and a remote URL open a new tab in the browser
+ // (verified in C++).
+ function() {
+ testLink.target = '_blank';
+ testLink.href = IN_APP_URL;
+ clickTestLink();
+ },
+ function() { testLink.href = 'http://chromium.org'; clickTestLink(); },
+
// If we manage to execute this test case, then we haven't navigated away.
function() { chrome.test.notifyPass(); }
];

Powered by Google App Engine
This is Rietveld 408576698