Commit be120757 authored by Paul Slaughter's avatar Paul Slaughter

Add image_element_properties dom shim to Jest

**Why?**
The mr_widget_options_spec implicitly calls a setFavicon
utility. This method depends on `onload` beind called when
`src` is set.
parent acde23af
Object.defineProperty(global.HTMLImageElement.prototype, 'src', {
get() {
return this.$_jest_src;
},
set(val) {
this.$_jest_src = val;
if (this.onload) {
this.onload();
}
},
});
...@@ -4,3 +4,4 @@ import './inner_text'; ...@@ -4,3 +4,4 @@ import './inner_text';
import './window_scroll_to'; import './window_scroll_to';
import './scroll_by'; import './scroll_by';
import './size_properties'; import './size_properties';
import './image_element_properties';
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment