diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-16 21:44:28 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-16 21:44:28 +0000 |
commit | 44254d57fc5ff8f96e3227d8c421819516470286 (patch) | |
tree | 21969ef09d5b522090104aeab2440d7c25c22fc7 /chrome/test | |
parent | 1a3efc6ae8008e83e1d5e909eac23fdb6600822a (diff) | |
download | chromium_src-44254d57fc5ff8f96e3227d8c421819516470286.zip chromium_src-44254d57fc5ff8f96e3227d8c421819516470286.tar.gz chromium_src-44254d57fc5ff8f96e3227d8c421819516470286.tar.bz2 |
More changes to extension omnibox API for styles.
- Overlapping styles are now bitwise-ORed together (instead of replacing
previous ones).
- The "length" parameter for style ranges is optional and can be 0.
BUG=63077,63078
TEST=covered by tests
Review URL: http://codereview.chromium.org/5064001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66327 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/data/extensions/api_test/omnibox/test.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/test/data/extensions/api_test/omnibox/test.html b/chrome/test/data/extensions/api_test/omnibox/test.html index 6394fab..6f9d988 100644 --- a/chrome/test/data/extensions/api_test/omnibox/test.html +++ b/chrome/test/data/extensions/api_test/omnibox/test.html @@ -9,7 +9,7 @@ chrome.omnibox.onInputChanged.addListener( if (text != "suggestio") return; - var desc = 'Description with style: <match> [dim], none'; + var desc = 'Description with style: <match>, [dim], (url till end)'; suggest([ { content: text + "n1", @@ -17,6 +17,7 @@ chrome.omnibox.onInputChanged.addListener( descriptionStyles: [ chrome.omnibox.styleMatch(desc.indexOf('<'), 6), chrome.omnibox.styleDim(desc.indexOf('['), 4), + chrome.omnibox.styleUrl(desc.indexOf('(')), ] }, {content: text + "n2", description: "description2"}, |