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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 <script> 1 <script>
2 // This function is called from the C++ browser test. It does a basic sanity 2 // This function is called from the C++ browser test. It does a basic sanity
3 // test that we can call extension APIs. 3 // test that we can call extension APIs.
4 function testTabsAPI() { 4 function testTabsAPI() {
5 console.log(chrome.tabs); 5 console.log(chrome.tabs);
6 6
7 chrome.tabs.getAllInWindow(null, function(tabs) { 7 chrome.tabs.getAllInWindow(null, function(tabs) {
8 window.domAutomationController.send(tabs.length == 1); 8 window.domAutomationController.send(tabs.length == 1);
9 }); 9 });
10 } 10 }
11
12 // This function is called from the C++ browser test. It tests the getLanguage
13 // function to make sure it can be used as an extension API. This will pass if
14 // the browser navigates to a page in French language before this is called.
15 function testTabsLanguageAPI() {
16 chrome.tabs.getLanguage(null, function(language) {
17 window.domAutomationController.send(language == 'FRENCH');
18 });
19 }
20
11 </script> 21 </script>
12 <select> 22 <select>
13 <option>one</option> 23 <option>one</option>
14 <option>two</option> 24 <option>two</option>
15 <option>three</option> 25 <option>three</option>
16 </select> 26 </select>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698