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

Unified Diff: chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html

Issue 150062: [chromium-reviews] Add getLanguage function to tabs extension (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html
===================================================================
--- chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html (revision 20334)
+++ chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html (working copy)
@@ -8,6 +8,16 @@
window.domAutomationController.send(tabs.length == 1);
});
}
+
+// This function is called from the C++ browser test. It tests the getLanguage
+// function to make sure it can be used as an extension API. This will pass if
+// the browser navigates to a page in French language before this is called.
+function testTabsLanguageAPI() {
+ chrome.tabs.getLanguage(null, function(language) {
+ window.domAutomationController.send(language == 'FRENCH');
+ });
+}
+
</script>
<select>
<option>one</option>
Property changes on: chrome\test\data\extensions\good\Extensions\behllobkkfkfnphdnhnkndlbkcpglgmj\1.0.0.0\toolstrip1.html
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698