summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-11 22:35:56 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-11 22:35:56 +0000
commit098ca94b1a0da99230fcdbb7653f738e286a21a7 (patch)
treea6a1659e7c729d6f90797d67936de6a6e815fa1a /chrome/test
parentb4e9c1a0aba8ccb23afb461e99e90090845b0a3e (diff)
downloadchromium_src-098ca94b1a0da99230fcdbb7653f738e286a21a7.zip
chromium_src-098ca94b1a0da99230fcdbb7653f738e286a21a7.tar.gz
chromium_src-098ca94b1a0da99230fcdbb7653f738e286a21a7.tar.bz2
Revise the omnibox extension API so that specifying descriptionStyles is easier.
Now each style has a range that it applies to. The styles can also overlap and be listed out of order. BUG=62385 TEST=covered by unit/browser tests Review URL: http://codereview.chromium.org/4660008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65869 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/data/extensions/api_test/omnibox/test.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/test/data/extensions/api_test/omnibox/test.html b/chrome/test/data/extensions/api_test/omnibox/test.html
index 95cfcc2..6394fab 100644
--- a/chrome/test/data/extensions/api_test/omnibox/test.html
+++ b/chrome/test/data/extensions/api_test/omnibox/test.html
@@ -15,10 +15,8 @@ chrome.omnibox.onInputChanged.addListener(
content: text + "n1",
description: desc,
descriptionStyles: [
- chrome.omnibox.styleMatch(desc.indexOf('<')),
- chrome.omnibox.styleNone(desc.indexOf('>')),
- chrome.omnibox.styleDim(desc.indexOf('[')),
- chrome.omnibox.styleNone(desc.indexOf(']')),
+ chrome.omnibox.styleMatch(desc.indexOf('<'), 6),
+ chrome.omnibox.styleDim(desc.indexOf('['), 4),
]
},
{content: text + "n2", description: "description2"},