aboutsummaryrefslogtreecommitdiffstats
path: root/test/ngScenario/dslSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ngScenario/dslSpec.js')
-rw-r--r--test/ngScenario/dslSpec.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/ngScenario/dslSpec.js b/test/ngScenario/dslSpec.js
index e955b017..28c9ffdc 100644
--- a/test/ngScenario/dslSpec.js
+++ b/test/ngScenario/dslSpec.js
@@ -347,6 +347,26 @@ describe("angular.scenario.dsl", function() {
dealoc(elm);
});
+ it('should execute mouseover', function() {
+ var mousedOver;
+ doc.append('<div></div>');
+ doc.find('div').mouseover(function() {
+ mousedOver = true;
+ });
+ $root.dsl.element('div').mouseover();
+ expect(mousedOver).toBe(true);
+ });
+
+ it('should bubble up the mouseover event', function() {
+ var mousedOver;
+ doc.append('<div id="outer"><div id="inner"></div></div>');
+ doc.find('#outer').mouseover(function() {
+ mousedOver = true;
+ });
+ $root.dsl.element('#inner').mouseover();
+ expect(mousedOver).toBe(true);
+ });
+
it('should count matching elements', function() {
doc.append('<span></span><span></span>');
$root.dsl.element('span').count();