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

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

Issue 9836036: Add getDefaultFontSize and setDefaultFontSize to Font Settings Extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing 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 bef1e3798213cf0a0ccf1b53a56282f9308b3365..2c8ec157743d45d37cd8dd2f716036bfa2163a7f 100644
--- a/chrome/test/data/extensions/api_test/font_settings/test.js
+++ b/chrome/test/data/extensions/api_test/font_settings/test.js
@@ -56,5 +56,17 @@ chrome.test.runTests([
chrome.test.assertEq('string', typeof(value[0].fontName), message);
chrome.test.assertEq('string', typeof(value[0].localizedName), message);
}));
+ },
+
+ function setDefaultFontSize() {
+ fs.setDefaultFontSize({
+ pixelSize: 22
+ }, chrome.test.callbackPass());
+ },
+
+ function getDefaultFontSize() {
+ var expected = 22;
+ var message = 'Setting for default font size should be ' + expected;
+ fs.getDefaultFontSize({}, 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