Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic click does not work in IE #69

Open
raviviswanathan opened this issue Jan 16, 2014 · 11 comments
Open

Basic click does not work in IE #69

raviviswanathan opened this issue Jan 16, 2014 · 11 comments
Labels
Milestone

Comments

@raviviswanathan
Copy link

am running a basic funcunit test as below for the test.html.. which has only

<html><body><div>Test</div></body></html>
module('test', {
  setup: function() {
    F.open('test.html');
  }
});

//test to verify that head, body are not empty

test("Page render Test : Head, Body and Header message", function(){
 ok( F("body").size(), "There are elements in the Head"); //head is not empty 
 F('body').click();
});

This gives the below error

1.There are elements in the Head
2.Unspecified error.Source: /j/test/resources/jquery.js:6110

3.Could not click 'body'Source: at assertOK (/j/test/resources/funcunit.js:2720:4)
at Anonymous function (/j/test/resources/funcunit.js:4243:8)

@alexisabril
Copy link
Contributor

Awesome, thanks for the repost. Can you provide which version of IE you're using?

@raviviswanathan
Copy link
Author

IE 10

@raviviswanathan
Copy link
Author

this works fine in Firefox and chrome, but not in IE

@raviviswanathan
Copy link
Author

Have i provided the enough input?

@raviviswanathan
Copy link
Author

Please HELP...

@alexisabril
Copy link
Contributor

@raviviswanathan I'll take a look at this issue asap.

@raviviswanathan
Copy link
Author

Just wanted to check if it a bug in Funcunit or i am missing something?

@daffl
Copy link
Contributor

daffl commented Jan 17, 2014

One thing that you should change is probably

ok( F("body").size(), "There are elements in the Head"); //head is not empty 

To

F("body").size("There are elements in the Head")

Which might fix your other issue as well.

@raviviswanathan
Copy link
Author

I get the below error after i changed to F("body").size("There are elements in the Head")

waiting for size on body !== There are elements in the body, actual value: 1
Source:

FuncUnit.unit.assertOK@http://localhost:8080/Quoting/j/test/resources/funcunit.js:2720
FuncUnit.makeFunc/FuncUnit.prototype[fname]/<.error@http://localhost:8080/Quoting/j/test/resources/funcunit.js:3944
FuncUnit._done/</timer<@http://localhost:8080/Quoting/j/test/resources/funcunit.js:4241

@alexisabril
Copy link
Contributor

@raviviswanathan This is actually a jQuery bug outlined here: jquery/jquery@b414efd

Basically, since FuncUnit is opening a new window, window points to the runner(funcunit page) while the element is referenced from the popup. IE10 isn't allowing that cross window communication. The bug is fixed in 1.11.x-beta.

In the interim, v2.1 will either contain a patched version of jQuery or 1.11(whichever is complete by v2.1 release).

For you're particular use case, if you download a beta release of 1.11 jQuery on the runner page your issue should be solved.

@mickmcgrath13
Copy link
Contributor

@alexisabril We're using 1.11, now. Can this be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants