Tests: Replace Syn with a local version that works in IE9 and IE10.
commit0331c44ae1bcaa8defd206606ca496de907324fa
authorTim Wienk <tim@wienk.name>
Fri, 25 Sep 2015 22:52:32 +0000 (26 00:52 +0200)
committerTim Wienk <tim@wienk.name>
Sun, 27 Sep 2015 11:03:42 +0000 (27 13:03 +0200)
tree8c375e2dc77a99ac378fffa9943d6dff2a81bcf7
parente593c85623ce935122923e63eb680f4537762a64
Tests: Replace Syn with a local version that works in IE9 and IE10.

Apparently triggering a click on an <a href="javascript:somethin()" />
in IE9 and IE10 causes a page reload of which Karma doesn't approve.

Since we don't use this functionality in our tests anyway, preventing
that trigger from happening has no effects for us.

Diff of the change to the original source (before building):

--- a/src/mouse.support.js
+++ b/src/mouse.support.js
@@ -22,7 +22,7 @@ if (!document.body) {
select = form.getElementsByTagName('select')[0];

//trigger click for linkHrefJS support, childNodes[6] === anchor
- syn.trigger(form.childNodes[6], 'click', {});
+ //syn.trigger(form.childNodes[6], 'click', {});

checkbox.checked = false;
checkbox.onchange = function () {
Tests/Plugins/syn/index.js
Tests/Plugins/syn/post-amd.js [moved from Tests/Plugins/syn/post.js with 100% similarity]
Tests/Plugins/syn/pre-amd.js [moved from Tests/Plugins/syn/pre.js with 100% similarity]
Tests/Utilities/syn.js [new file with mode: 0644]