Tweaked some of the tests, added in events and fx tests.
This commit is contained in:
parent
b09043fbf6
commit
54035207fe
4 changed files with 34 additions and 13 deletions
|
@ -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" );
|
||||
});
|
||||
}).click();
|
||||
|
||||
triggerEvent( input, "click" );
|
||||
|
||||
document.body.removeChild( tmp );
|
||||
//triggerEvent( input, "click" );
|
||||
|
||||
var counter = 0;
|
||||
function selectOnChange(event) {
|
||||
|
|
2
src/jquery/coreTest.js
vendored
2
src/jquery/coreTest.js
vendored
|
@ -340,7 +340,7 @@ test("wrap(String|Element)", function() {
|
|||
ok( result.text() == defaultText, 'Check for element wrapping' );
|
||||
|
||||
reset();
|
||||
stop();
|
||||
//stop();
|
||||
$('#check1').click(function() {
|
||||
var checkbox = this;
|
||||
ok( checkbox.checked, "Checkbox's state is erased after wrap() action, see #769" );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue