aboutsummaryrefslogtreecommitdiffstats
path: root/test/testabilityPatch.js
diff options
context:
space:
mode:
authorMisko Hevery2010-04-07 10:29:47 -0700
committerMisko Hevery2010-04-07 10:29:47 -0700
commit82cb18db28ea7381e5168489207bfa23c059af0c (patch)
treeb4710ab1c2c0593ca9228cbb67495846d72d696e /test/testabilityPatch.js
parent0df93fd49c1687b2eddaa79faa1c0adbef82bf72 (diff)
parentee327a1f4f75f57c2a2c6166520c092d4942ffe0 (diff)
downloadangular.js-82cb18db28ea7381e5168489207bfa23c059af0c.tar.bz2
Merge branch 'directives' of github.com:angular/angular.js into directives
Diffstat (limited to 'test/testabilityPatch.js')
-rw-r--r--test/testabilityPatch.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js
index dc67ddec..475784ad 100644
--- a/test/testabilityPatch.js
+++ b/test/testabilityPatch.js
@@ -27,6 +27,12 @@ extend(angular, {
});
+function trigger(element, type) {
+ var evnt = document.createEvent('MouseEvent');
+ evnt.initMouseEvent(type, true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
+ (element[0] || element).dispatchEvent(evnt);
+}
+
function sortedHtml(element) {
var html = "";
(function toString(node) {