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

Unified Diff: chrome/test/data/extensions/api_test/font_settings/standard/test.js

Issue 10107014: Migrate WebKit "global script" font prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 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/extensions/api_test/font_settings/standard/test.js
diff --git a/chrome/test/data/extensions/api_test/font_settings/standard/test.js b/chrome/test/data/extensions/api_test/font_settings/standard/test.js
index 08612ee8b4b49719f42754bd20c99e4142aaf29c..f6fdd548d5d69bd953f7be04529fa9d62d7a26c5 100644
--- a/chrome/test/data/extensions/api_test/font_settings/standard/test.js
+++ b/chrome/test/data/extensions/api_test/font_settings/standard/test.js
@@ -49,6 +49,7 @@ chrome.test.runTests([
chrome.test.assertEq({
genericFamily: genericFamily,
fontName: fontName,
+ script: 'Zyyy',
levelOfControl: CONTROLLED_BY_THIS_EXTENSION
}, details);
});
@@ -120,7 +121,7 @@ chrome.test.runTests([
'fontName and localizedName properties.';
fs.getFontList(chrome.test.callbackPass(function(value) {
chrome.test.assertTrue(value.length > 0,
- "Font list is not expected to be empty.");
+ 'Font list is not expected to be empty.');
chrome.test.assertEq('string', typeof(value[0].fontName), message);
chrome.test.assertEq('string', typeof(value[0].localizedName), message);
}));
@@ -205,11 +206,13 @@ chrome.test.runTests([
// This test may fail on Windows if the font is not installed on the
// system. See crbug.com/122303
function clearGlobalFont() {
+ var script = 'Zyyy';
var genericFamily = 'sansserif';
var fontName = 'Arial';
chrome.test.listenOnce(fs.onFontChanged, function(details) {
chrome.test.assertEq({
+ script: script,
genericFamily: genericFamily,
fontName: fontName,
levelOfControl: CONTROLLABLE_BY_THIS_EXTENSION
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chrome/test/data/profiles/webkit_global_reverse_migration/Default/Preferences » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698