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

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

Issue 9853013: Expose more font size prefs to the Font Settings Extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "true" to true Created 8 years, 9 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 2c8ec157743d45d37cd8dd2f716036bfa2163a7f..1b1157abe9573951bddaebbd27fa40dab532d157 100644
--- a/chrome/test/data/extensions/api_test/font_settings/test.js
+++ b/chrome/test/data/extensions/api_test/font_settings/test.js
@@ -64,9 +64,39 @@ chrome.test.runTests([
}, chrome.test.callbackPass());
},
+ function setDefaultFixedFontSize() {
+ fs.setDefaultFixedFontSize({
+ pixelSize: 42
+ }, chrome.test.callbackPass());
+ },
+
+ function setMinimumFontSize() {
+ fs.setMinimumFontSize({
+ pixelSize: 7
+ }, chrome.test.callbackPass());
+ },
+
function getDefaultFontSize() {
var expected = 22;
var message = 'Setting for default font size should be ' + expected;
fs.getDefaultFontSize({}, expect({pixelSize: expected}, message));
+ },
+
+ function getDefaultFontSizeOmitDetails() {
+ var expected = 22;
+ var message = 'Setting for default font size should be ' + expected;
+ fs.getDefaultFontSize(expect({pixelSize: expected}, message));
+ },
+
+ function getDefaultFixedFontSize() {
+ var expected = 42;
+ var message = 'Setting for default fixed font size should be ' + expected;
+ fs.getDefaultFixedFontSize({}, expect({pixelSize: expected}, message));
+ },
+
+ function getMinimumFontSize() {
+ var expected = 7;
+ var message = 'Setting for minimum font size should be ' + expected;
+ fs.getMinimumFontSize({}, expect({pixelSize: 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