/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththisfile,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
// This plugin supports finding files with particular resource:// URIs // and translating the uri into a relative filesystem path where the file may be // found when running within the Karma / Mocha test framework.
// path.join() is necessary to normalize the path on Windows. // Without it, the path may contain backslashes, resulting in // different build output on Windows than on Unix systems. const pathname = path.join(this.#baseDir, url.pathname);
resourceData.path = pathname;
resourceData.query = url.search;
resourceData.fragment = url.hash;
resourceData.resource = pathname + url.search + url.hash; returntrue;
});
}
);
}
},
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.