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

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

Issue 10142011: Add character encoding to Font Settings Extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 8 years, 8 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
« no previous file with comments | « chrome/common/extensions/docs/samples.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/font_settings/test.js
diff --git a/chrome/test/data/extensions/api_test/font_settings/test.js b/chrome/test/data/extensions/api_test/font_settings/test.js
index 33994efa21a306117ec61e5f76589fb3c669b12f..b08bef882e30ef885e682198595cbdcbc319063d 100644
--- a/chrome/test/data/extensions/api_test/font_settings/test.js
+++ b/chrome/test/data/extensions/api_test/font_settings/test.js
@@ -130,6 +130,20 @@ chrome.test.runTests([
}, chrome.test.callbackPass());
},
+ function setDefaultCharacterSet() {
+ var charset = 'GBK';
+ chrome.test.listenOnce(fs.onDefaultCharacterSetChanged, function(details) {
+ chrome.test.assertEq(details, {
+ charset: charset,
+ levelOfControl: 'controlled_by_this_extension'
+ });
+ });
+
+ fs.setDefaultCharacterSet({
+ charset: charset
+ }, chrome.test.callbackPass());
+ },
+
function getDefaultFontSize() {
var expected = 22;
var message = 'Setting for default font size should be ' + expected;
@@ -152,5 +166,11 @@ chrome.test.runTests([
var expected = 7;
var message = 'Setting for minimum font size should be ' + expected;
fs.getMinimumFontSize({}, expect({pixelSize: expected}, message));
- }
+ },
+
+ function getDefaultCharacterSet() {
+ var expected = 'GBK';
+ var message = 'Setting for default character set should be ' + expected;
+ fs.getDefaultCharacterSet(expect({charset: expected}, message));
+ },
]);
« no previous file with comments | « chrome/common/extensions/docs/samples.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698