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

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

Issue 2280853002: Slightly nicer icon.js APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/webui/icon_test.html
diff --git a/chrome/test/data/webui/icon_test.html b/chrome/test/data/webui/icon_test.html
index a01fd760b1782f2c3e1e583bc5fe6e4b586eec78..9024032ae240d8def86d2fa1ec31f70dfcbce27e 100644
--- a/chrome/test/data/webui/icon_test.html
+++ b/chrome/test/data/webui/icon_test.html
@@ -4,7 +4,7 @@
<script>
// Test the case where a non-favicon URL is passed.
-function testGetFaviconImageSet_NonFavicon() {
+function testGetFavicon_NonFavicon() {
var url = 'http://foo.com';
var expectedDesktop = '-webkit-image-set(' +
'url("chrome://favicon/size/16@1x/http://foo.com") 1x, ' +
@@ -15,11 +15,11 @@ function testGetFaviconImageSet_NonFavicon() {
var isDesktop = cr.isMac || cr.isChromeOS || cr.isWindows || cr.isLinux;
var expected = isDesktop ? expectedDesktop : expectedOther;
- assertEquals(expected, cr.icon.getFaviconImageSet(url));
+ assertEquals(expected, cr.icon.getFavicon(url));
}
// Test the case where the favicon URL is passed.
-function testGetFaviconImageSet_IconUrl() {
+function testGetFavicon_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, ' +
@@ -30,7 +30,7 @@ function testGetFaviconImageSet_IconUrl() {
var isDesktop = cr.isMac || cr.isChromeOS || cr.isWindows || cr.isLinux;
var expected = isDesktop ? expectedDesktop : expectedOther;
- assertEquals(expected, cr.icon.getFaviconImageSet(url));
+ assertEquals(expected, cr.icon.getFavicon(url));
}
</script>

Powered by Google App Engine
This is Rietveld 408576698