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

Funcunit tests does not fully passed under Phantomjs #94

Open
php-max opened this issue Jan 22, 2015 · 3 comments
Open

Funcunit tests does not fully passed under Phantomjs #94

php-max opened this issue Jan 22, 2015 · 3 comments
Labels

Comments

@php-max
Copy link

php-max commented Jan 22, 2015

Hi, I just forked funcunit. but find a problem. All funcunit tests can pass in latest chrome. But when I try to automate them using phantomjs. It failed at test "Drag To" (syn_test.js). I spent hours on this issue but cannot figure out what is the cause.

I'm using grunt and have tried testee andgrunt-contrib-qunit, both return same errors. It seems the dropover event listener never fired. Please help me find the causes of this problem. Thank you!

@justinbmeyer
Copy link
Member

This is likely a problem with Syn.

Sent from my iPhone

On Jan 21, 2015, at 11:34 PM, PHP-Max [email protected] wrote:

Hi, I just forked funcunit. but find a problem. All funcunit tests can pass in latest chrome. But when I try to automate them using phantomjs. It failed at test "Drag To" (syn_test.js). I spent hours on this issue but cannot figure out what is the cause.

I'm using grunt and have tried testee andgrunt-contrib-qunit, both return same errors. It seems the dropover event listener never fired. Please help me find the causes of this problem. Thank you!


Reply to this email directly or view it on GitHub.

@php-max
Copy link
Author

php-max commented Jan 22, 2015

Does it mean I have to post an issue to Syn issues?

@php-max
Copy link
Author

php-max commented Jan 22, 2015

I change the test drag to to

test("Drag To", function(){
    F.open("//test/drag/drag.html", function(){
        console.log('here is the drag to');
    });
    F('#drag').visible(function(){
        console.log('Origin Position',F('#drag')[0].offsetTop); // ==> 118 in chrome, 127 in phantomjs
    },'We see the dragger!');

    F("#drag").drag("#drop",function(){
        console.log('#drag moved',this[0].offsetTop); // ==> 150 in chrome, 127 in phantomjs
        console.log(F('#clicker').size());
    });
});

So the drag div does not moved in phantomjs, is this info helpful?

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

3 participants