1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

wombat: add CSSStyleSheet.prototype href override

karma tests: change name to just 'pywb'
This commit is contained in:
Ilya Kreymer 2015-12-11 17:33:22 -08:00
parent 467ea0f68b
commit 64fe49d703
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
var sauceLabsConfig = {
testName: 'PyWB Client Tests',
testName: 'pywb Client Tests',
};
// see https://github.com/karma-runner/karma-sauce-launcher/issues/73

View File

@ -1331,6 +1331,7 @@ var wombat_internal = function($wbwindow) {
//============================================
function init_attr_overrides($wbwindow) {
override_attr($wbwindow.HTMLLinkElement.prototype, "href", "cs_");
override_attr($wbwindow.CSSStyleSheet.prototype, "href", "cs_");
override_attr($wbwindow.HTMLImageElement.prototype, "src", "im_");
override_attr($wbwindow.HTMLIFrameElement.prototype, "src", "if_");
override_attr($wbwindow.HTMLScriptElement.prototype, "src", "js_");