| Index: chrome/test/data/webui/util_test.html
|
| diff --git a/chrome/test/data/webui/util_test.html b/chrome/test/data/webui/util_test.html
|
| index 0c8c4eabf43456b81243084ea5de692a6e0c649b..be1f240b3756a8e22bdf00ccbc36df5cbb8ee93e 100644
|
| --- a/chrome/test/data/webui/util_test.html
|
| +++ b/chrome/test/data/webui/util_test.html
|
| @@ -1,6 +1,8 @@
|
| <!DOCTYPE html>
|
| <html>
|
| <body>
|
| +<a id="file" href="file:///path/to/file">File</a>
|
| +<a id="chrome" href="about:chrome">Chrome</a>
|
| <script>
|
|
|
| function testQuoteString() {
|
| @@ -20,6 +22,20 @@ function testQuoteString() {
|
| assertEquals(null, match);
|
| }
|
|
|
| +function testClickHandler() {
|
| + var clickArgs = null;
|
| + var oldSend = chrome.send;
|
| + chrome.send = function(message, args) {
|
| + assertEquals('navigateToUrl', message);
|
| + clickArgs = args;
|
| + };
|
| + $('file').click();
|
| + assertEquals('file:///path/to/file', clickArgs[0]);
|
| + $('chrome').click();
|
| + assertEquals('about:chrome', clickArgs[0]);
|
| + chrome.send = oldSend;
|
| +}
|
| +
|
| </script>
|
| </body>
|
| </html>
|
|
|