| 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..d3fce16cdc28af045742e9412627cd102b7ccf9e
|
| --- /dev/null
|
| +++ b/LayoutTests/inspector/documentation/documentation-test.js
|
| @@ -0,0 +1,21 @@
|
| +function initialize_DocumentationTests()
|
| +{
|
| +
|
| +InspectorTest.killLoadXHRWithPrefix = function(urlPrefix)
|
| +{
|
| + var originalLoadXHR = window.loadXHR;
|
| + window.loadXHR = function(url)
|
| + {
|
| + if (url.startsWith(urlPrefix))
|
| + return new Promise(load);
|
| +
|
| + return originalLoadXHR(url);
|
| +
|
| + function load(successCallback, failureCallback)
|
| + {
|
| + failureCallback();
|
| + }
|
| + }
|
| +}
|
| +
|
| +}
|
|
|