Chromium Code Reviews| Index: LayoutTests/inspector/documentation/documentation-test.js |
| diff --git a/LayoutTests/inspector/documentation/documentation-test.js b/LayoutTests/inspector/documentation/documentation-test.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9c0aeaf9394de4dc4692147b4803a9243fafbaac |
| --- /dev/null |
| +++ b/LayoutTests/inspector/documentation/documentation-test.js |
| @@ -0,0 +1,23 @@ |
| +function initialize_DocumentationTests() |
| +{ |
| + |
| +InspectorTest.killLoadXHRWithPrefix = function(urlPrefix) |
| +{ |
| + var originalLoadXHR = window.loadXHR; |
| + window.loadXHR = function(url) |
| + { |
| + |
|
lushnikov
2014/09/12 12:44:39
excessive new line
semeny
2014/09/12 12:48:08
Done.
|
| + if (url.startsWith(urlPrefix)) |
| + return new Promise(load); |
| + |
| + return originalLoadXHR(url); |
| + |
| + function load(successCallback, failureCallback) |
| + { |
| + failureCallback(); |
| + return; |
|
lushnikov
2014/09/12 12:44:39
no need for the return here
semeny
2014/09/12 12:48:08
Done.
|
| + } |
| + } |
| +} |
| + |
| +} |