Chromium Code Reviews| Index: LayoutTests/http/tests/serviceworker/chromium/resources/clients-openwindow.js |
| diff --git a/LayoutTests/http/tests/serviceworker/chromium/resources/clients-openwindow.js b/LayoutTests/http/tests/serviceworker/chromium/resources/clients-openwindow.js |
| index 602e044e8644a17447466168c38482cafc55e6ae..31dcf7ba15501ae1dd8b6b233344d99a7d2e30ba 100644 |
| --- a/LayoutTests/http/tests/serviceworker/chromium/resources/clients-openwindow.js |
| +++ b/LayoutTests/http/tests/serviceworker/chromium/resources/clients-openwindow.js |
| @@ -61,6 +61,15 @@ var TESTS = [ |
| }); |
| }, |
| + function testOpenInvalidURL() { |
| + synthesizeNotificationClick().then(function(e) { |
| + clients.openWindow('http://[test].com').catch(function(error) { |
| + self.postMessage('openWindow() can not open invalid url'); |
|
nhiroki
2015/07/01 07:00:29
nit: "invalid" -> "an invalid"
Paritosh Kumar
2015/07/01 07:43:19
Thanks. Done.
|
| + self.postMessage('openWindow() error is: ' + error.name); |
| + }).then(runNextTestOrQuit); |
| + }); |
| + }, |
| + |
| function testOpenViewSource() { |
| synthesizeNotificationClick().then(function(e) { |
| clients.openWindow('view-source://http://test.com').catch(function(c) { |