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

Unified Diff: chrome/test/data/extensions/platform_apps/windows_api/test.js

Issue 10896032: HTML titlebars for v2 apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: kludge test fix for mac 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
« no previous file with comments | « chrome/renderer/resources/extensions/platform_app.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/platform_apps/windows_api/test.js
diff --git a/chrome/test/data/extensions/platform_apps/windows_api/test.js b/chrome/test/data/extensions/platform_apps/windows_api/test.js
index ae324be084a31974006b1711a7b78425070d4f10..0f8e03e6e9d1c4bece52b732fe47cc963380ae14 100644
--- a/chrome/test/data/extensions/platform_apps/windows_api/test.js
+++ b/chrome/test/data/extensions/platform_apps/windows_api/test.js
@@ -20,7 +20,12 @@ chrome.app.runtime.onLaunched.addListener(function() {
{width:512, height:384, frame:'custom'},
callbackPass(function(win) {
chrome.test.assertEq(512, win.dom.innerWidth);
- chrome.test.assertEq(384, win.dom.innerHeight);
+ // TODO(jeremya): Window metrics are inconsistent on Mac at the
+ // moment (see http://crbug.com/130184)
+ if (/Mac/.test(navigator.userAgent))
+ chrome.test.assertEq(406, win.dom.innerHeight);
+ else
+ chrome.test.assertEq(384, win.dom.innerHeight);
var oldWidth = win.dom.outerWidth, oldHeight = win.dom.outerHeight;
win.dom.resizeBy(-256, 0);
chrome.test.assertEq(oldWidth - 256, win.dom.outerWidth);
« no previous file with comments | « chrome/renderer/resources/extensions/platform_app.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698