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

Unified Diff: chrome/test/data/extensions/api_test/popup/popup.html

Issue 295051: Constrain extension popups to a min/max size (Closed)
Patch Set: Created 11 years, 2 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/api_test/popup/popup.html
diff --git a/chrome/test/data/extensions/api_test/popup/popup.html b/chrome/test/data/extensions/api_test/popup/popup.html
index 02d634219cb87ea3e812ed0f1b51fc8d1d895bc5..683ffe7867ee15325166f60c178841af584b017b 100644
--- a/chrome/test/data/extensions/api_test/popup/popup.html
+++ b/chrome/test/data/extensions/api_test/popup/popup.html
@@ -2,8 +2,8 @@
<script>
function run_tests() {
// Compute the size of the popup.
- var width = 100;
- var height = 100;
+ var width = 0;
+ var height = 0;
if (localStorage.height) {
height = parseInt(localStorage.height);
}
@@ -22,8 +22,8 @@ function run_tests() {
//window.setTimeout(chrome.test.notifyPass, 0);
chrome.test.notifyPass();
- height += 100;
- width += 100;
+ height += 500;
+ width += 500;
localStorage.height = JSON.stringify(height);
localStorage.width = JSON.stringify(width);
}
@@ -40,5 +40,5 @@ div {
</style>
</head>
<body onload="window.setTimeout(run_tests, 0)">
-<div id="test">TEST</div>
+<div id="test">A</div>
</body>

Powered by Google App Engine
This is Rietveld 408576698