diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-07 21:27:34 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-07 21:27:34 +0000 |
commit | 7e3185a37ac1052e028d4de090a2a33c12e697bf (patch) | |
tree | c8d0f1bba4d982404737bff017a8ca5da7cce7e3 /chrome/test/data/extensions/good | |
parent | 96f7f2fc9d83dc862e3a0c98833226b297401ae4 (diff) | |
download | chromium_src-7e3185a37ac1052e028d4de090a2a33c12e697bf.zip chromium_src-7e3185a37ac1052e028d4de090a2a33c12e697bf.tar.gz chromium_src-7e3185a37ac1052e028d4de090a2a33c12e697bf.tar.bz2 |
Revert r28293.
This reverts,
"Change detectLanguage() API to now return the top three languages as well their percentages. Added suitable unit testing to test that top three languages are returned as expected."
TBR=zork
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/270012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28311 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data/extensions/good')
2 files changed, 2 insertions, 26 deletions
diff --git a/chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/three_languages.html b/chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/three_languages.html index a4d4362..e69de29 100644 --- a/chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/three_languages.html +++ b/chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/three_languages.html @@ -1,22 +0,0 @@ -<!-- -Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this -source code is governed by a BSD-style license that can be found in the -LICENSE file. ---> -<html> -<body> -<p> -<!-- Sentence in French (Shortest) --> -Il s'agit d'une courte phrase en français qui ne signifie pas grand chose. -</p> -<p> -<!-- Sentence in English --> -This is simple and short sentence in English which is being used simply to guess what language this is. -</p> -<p> -<!-- Sentence in Italian (Longest) --> -Questa è una frase molto lunga lingua tedesca, e anche se non ha alcun senso, lo fa ancora lo scopo di verificare se questa cosa funziona a tutti o no. -</p> - -</body> -</html> diff --git a/chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html b/chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html index f4746a4..8fb82aa 100644 --- a/chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html +++ b/chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html @@ -14,10 +14,8 @@ function testTabsAPI() { // 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.detectLanguage(null, function(topLanguages) { - window.domAutomationController.send(topLanguages[0].languageName == 'it' && - topLanguages[1].languageName == 'en' && - topLanguages[2].languageName == 'fr'); + chrome.tabs.detectLanguage(null, function(language) { + window.domAutomationController.send(language == 'fr'); }); } |