aboutsummaryrefslogtreecommitdiffstats
path: root/src/event
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-07-09 00:15:44 +0000
committerJohn Resig <jeresig@gmail.com>2007-07-09 00:15:44 +0000
commit54035207fe91cb57f49bb8c0c9f7b4ada8d05346 (patch)
tree3c2cb17caf1da7358801aa2a8476b176bb6292e9 /src/event
parentb09043fbf6d98adfd22f85a347256f545afb2c11 (diff)
downloadjquery-54035207fe91cb57f49bb8c0c9f7b4ada8d05346.tar.gz
jquery-54035207fe91cb57f49bb8c0c9f7b4ada8d05346.zip
Tweaked some of the tests, added in events and fx tests.
Diffstat (limited to 'src/event')
-rw-r--r--src/event/eventTest.js15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/event/eventTest.js b/src/event/eventTest.js
index 15e66313e..312b1e565 100644
--- a/src/event/eventTest.js
+++ b/src/event/eventTest.js
@@ -28,22 +28,17 @@ test("bind()", function() {
// events don't work with iframes, see #939
- var tmp = document.createElement('iframe');
- document.body.appendChild( tmp );
- var doc = tmp.contentWindow.document;
- doc.open();
- doc.write("<html><body><input type='text'/></body></html>");
- doc.close();
+ var doc = document.getElementById("iframe").contentDocument;
+
+ doc.body.innerHTML = "<input type='text'/>";
var input = doc.getElementsByTagName("input")[0];
$(input).bind("click",function() {
ok( true, "Binding to element inside iframe" );
- });
-
- triggerEvent( input, "click" );
+ }).click();
- document.body.removeChild( tmp );
+ //triggerEvent( input, "click" );
var counter = 0;
function selectOnChange(event) {