blob: e6d4b4a84f05ad508117254fe663def8d042e394 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
chrome.mimeHandlerPrivate.getStreamInfo(function(streamInfo) {
chrome.test.assertEq(
chrome.extension.getURL('well-known-mime.ics'), streamInfo.originalUrl);
var x = new XMLHttpRequest();
x.open('GET', streamInfo.streamUrl);
x.onloadend = function() {
chrome.test.assertEq(
'This is a well-known MIME (text/calendar).\n', x.responseText);
chrome.runtime.sendMessage('finish test by checking SW URLs');
};
x.send();
});