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

Unified Diff: chrome/test/data/webui/util_test.html

Issue 1919183005: Cleanup: Extract icon related methods outside of util.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename favicon.html to icon.html Created 4 years, 7 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/webui/util_test.html
diff --git a/chrome/test/data/webui/util_test.html b/chrome/test/data/webui/util_test.html
index 6fdb55127b703430e23ef35c59d6d1fbdf7e2b68..0c8c4eabf43456b81243084ea5de692a6e0c649b 100644
--- a/chrome/test/data/webui/util_test.html
+++ b/chrome/test/data/webui/util_test.html
@@ -20,36 +20,6 @@ function testQuoteString() {
assertEquals(null, match);
}
-// Test the case where a non-favicon URL is passed.
-function testGetFaviconImageSet_NonFavicon() {
- var url = 'http://foo.com';
- var expectedDesktop = '-webkit-image-set(' +
- 'url("chrome://favicon/size/16@1x/http://foo.com") 1x, ' +
- 'url("chrome://favicon/size/16@2x/http://foo.com") 2x)';
- var expectedOther = '-webkit-image-set(' +
- 'url("chrome://favicon/size/16@1x/http://foo.com") ' +
- window.devicePixelRatio + 'x)';
-
- var isDesktop = cr.isMac || cr.isChromeOS || cr.isWindows || cr.isLinux;
- var expected = isDesktop ? expectedDesktop : expectedOther;
- assertEquals(expected, getFaviconImageSet(url));
-}
-
-// Test the case where the favicon URL is passed.
-function testGetFaviconImageSet_IconUrl() {
- var url = 'http://foo.com/foo.ico';
- var expectedDesktop = '-webkit-image-set(' +
- 'url("chrome://favicon/size/16@1x/iconurl/http://foo.com/foo.ico") 1x, ' +
- 'url("chrome://favicon/size/16@2x/iconurl/http://foo.com/foo.ico") 2x)';
- var expectedOther = '-webkit-image-set(' +
- 'url("chrome://favicon/size/16@1x/iconurl/http://foo.com/foo.ico") ' +
- window.devicePixelRatio + 'x)';
-
- var isDesktop = cr.isMac || cr.isChromeOS || cr.isWindows || cr.isLinux;
- var expected = isDesktop ? expectedDesktop : expectedOther;
- assertEquals(expected, getFaviconImageSet(url));
-}
-
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698