| 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..ff2cdee57747e7ce8fc47de3e258aeebb3ccaf27 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 an invalid url');
|
| + 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) {
|
|
|