Permalink
Browse files

wombat: add CSSStyleSheet.prototype href override

karma tests: change name to just 'pywb'
  • Loading branch information...
1 parent 467ea0f commit 64fe49d70317ce03913e3dab6188024e78e9e6ac @ikreymer committed Dec 12, 2015
Showing with 2 additions and 1 deletion.
  1. +1 −1 karma-tests/karma.conf.js
  2. +1 −0 pywb/static/wombat.js
@@ -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
@@ -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_");

0 comments on commit 64fe49d

Please sign in to comment.