| Index: chrome/test/data/extensions/api_test/streams_private/handle_mime_type/background.js
|
| diff --git a/chrome/test/data/extensions/api_test/streams_private/handle_mime_type/background.js b/chrome/test/data/extensions/api_test/streams_private/handle_mime_type/background.js
|
| index b60b6c6adc3e9a6e4eda6c7764e0126efc2d81fd..bb55f9771dcd8c45b583ddbe4e08754bf46e5b50 100644
|
| --- a/chrome/test/data/extensions/api_test/streams_private/handle_mime_type/background.js
|
| +++ b/chrome/test/data/extensions/api_test/streams_private/handle_mime_type/background.js
|
| @@ -11,7 +11,15 @@ chrome.streamsPrivate.onExecuteMimeTypeHandler.addListener(
|
| // meant to be handled by the extension. The extension getting an event with
|
| // the MIME type 'application/msword' means the test has succeeded.
|
| if (params.mimeType == 'application/msword') {
|
| - chrome.test.notifyPass();
|
| + var headers = params.responseHeaders;
|
| + if (headers.indexOf('Content-Type: application/msword') == -1 ||
|
| + headers.indexOf('HTTP/1.1 200 OK') == -1) {
|
| + chrome.test.notifyFail(
|
| + 'HTTP request header did not contain expected attributes.');
|
| + hasFailed = true;
|
| + } else {
|
| + chrome.test.notifyPass();
|
| + }
|
| return;
|
| }
|
|
|
|
|