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

Unified Diff: chrome/test/data/extensions/api_test/icons/extension_with_permission/index.html

Issue 10826157: Check for warnings when loading extensions in browser tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ExtensionTerminalPrivateApiTest.TerminalTest Created 8 years, 4 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/icons/extension_with_permission/index.html
diff --git a/chrome/test/data/extensions/api_test/icons/extension_with_permission/index.html b/chrome/test/data/extensions/api_test/icons/extension_with_permission/index.html
index 9642617a82969ddfc2a484da9d3922ef0f9d9888..f9e9efd800f2ca10ad09b34cd302671ac6c4090b 100644
--- a/chrome/test/data/extensions/api_test/icons/extension_with_permission/index.html
+++ b/chrome/test/data/extensions/api_test/icons/extension_with_permission/index.html
@@ -1,63 +1,3 @@
-<script type="text/javascript">
-
-var TOTAL = 4;
-var count = 0;
-
-function load(e) {
- if (++count < TOTAL)
- return;
-
- // Good. All the images have loaded. Now make sure they're the correct size.
- var imgs = document.getElementsByTagName('img');
- for (var x = 0; x < imgs.length; x++) {
- var style = getComputedStyle(imgs[x]);
- var size = imgs[x].getAttribute('testsize');
- if (style.height != size || style.width != size) {
- document.title = "Incorrect size on " + imgs[x].src;
- return;
- }
- }
-
- // Success!
- document.title = "Loaded";
-}
-
-function error(e) {
- // We failed to load an image that should have loaded.
- document.title = "Not loaded: " + e.target.src;
-}
-
-</script>
-
-<!-- Tests loading a standard 128px icon. -->
-<img src="chrome://extension-icon/gbmgkahjioeacddebbnengilkgbkhodg/128/0"
- testsize="128px"
- onload="load(event);"
- onerror="error(event);"/>
-
-<!--
- Tests loading a standard 48px icon with a MATCH_SMALLER.
- This should not be resized to 48px.
--->
-<img src="chrome://extension-icon/gbmgkahjioeacddebbnengilkgbkhodg/48/2"
- testsize="32px"
- onload="load(event);"
- onerror="error(event);"/>
-
-<!--
- Tests loading a standard 32px icon, grayscale. We assume that we
- actually got a grayscale image back here.
--->
-<img src="chrome://extension-icon/gbmgkahjioeacddebbnengilkgbkhodg/32/1?grayscale=true"
- testsize="32px"
- onload="load(event);"
- onerror="error(event);"/>
-
-<!--
- Tests loading a 16px by resizing the 32px version (MATCH_BIGGER).
- This should be resized to 16px.
--->
-<img src="chrome://extension-icon/gbmgkahjioeacddebbnengilkgbkhodg/16/1"
- testsize="16px"
- onload="load(event);"
- onerror="error(event);"/>
+<body>
+<script src="index.js"></script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698