TypeError: Event.simulateMouse is not a function

12 views
Skip to first unread message

kalle

unread,
Apr 19, 2008, 1:50:33 PM4/19/08
to JavaScript Project Generator
hey @ all,
always get this error, don't know why..:

TypeError: Event.simulateMouse is not a function(TypeError:
Event.simulateMouse is not a function)

i work with Jsunittest, version 0.6.3. / from http://newjs.rubyforge.org/

my test looks like this:

// mousdown
testMousdown: function() { with(this) {
Event.simulateMouse('shifts', 'mouseup');
}}

thx for help

kalle

Nic Williams

unread,
Apr 19, 2008, 5:25:45 PM4/19/08
to javascript-pro...@googlegroups.com
Ahh, that function currently resides in http://drnicutilities.rubyforge.org/drnic_js_test_helpers/ not in jsunittest; so you need to add that too. Perhaps it could be integrated into jsunittest.js?
--
Dr Nic Williams
http://drnicacademy.com - Ruby/Rails training/dev around the world
http://drnicwilliams.com - Ruby/Rails/Javascript/Web2.0
(skype) nicwilliams
(p) +61 412 002 126 / +61 7 3113 3033
(mail) PO Box 583 Ashgrove 4060 QLD Aus
Reply all
Reply to author
Forward
0 new messages