Commit 2ffc338
committed
Create a wrapper around createElement('img') so it can be tested
I have no idea how to get sinon to actually stub
`document.createElement(‘img’)` and every attempt causes Phantom to
stop responding.
This was the easiest way out. I’m sorry.
This is a test backfilled for #3341 parent 5db3913 commit 2ffc338
2 files changed
+13
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
720 | | - | |
| 720 | + | |
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
| |||
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
739 | 746 | | |
740 | 747 | | |
741 | 748 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 27 | | |
33 | 28 | | |
34 | 29 | | |
| |||
1045 | 1040 | | |
1046 | 1041 | | |
1047 | 1042 | | |
1048 | | - | |
1049 | 1043 | | |
1050 | 1044 | | |
| 1045 | + | |
| 1046 | + | |
1051 | 1047 | | |
1052 | 1048 | | |
1053 | 1049 | | |
| |||
1625 | 1621 | | |
1626 | 1622 | | |
1627 | 1623 | | |
1628 | | - | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
1629 | 1627 | | |
1630 | 1628 | | |
1631 | 1629 | | |
| |||
0 commit comments