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 does not work properly under Phantomjs #93

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

Funcunit does not work properly under Phantomjs #93

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

Comments

@php-max
Copy link

php-max commented Jan 22, 2015

Hello, is funcunit still active? This is a great tool, but I have a problem when using it under phantomjs.

Here is the sample code in demo.test.html file

<html>
<head>
    <meta charset="UTF-8">
    <title>Using QUnit Tests</title>
    <script src="/lib/jquery/jquery-1.9.1.js"></script>
    <script src="/lib/qunit-1.17.1.js"></script>
    <script src="/lib/funcunit.js"></script>
    <link rel="stylesheet" href="/css/qunit-1.17.1.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="specs/demo.test.js"></script>
</body>
</html>

The demo.test.js file is very simple.

module('Some Demo tests', {
  beforeEach: function() {

  // F.open('/'); 
   console.log('First Demo BeforeEach Called');
    return true;

  },
  afterEach: function() {
    return;
  }
});

test('A simple demo with FuncUnit', function() {
  F('body').visible('it shows the body');
});

It works fine in Chrome 39 but does not work in Phantomjs 1.9.8.

I'm using the grunt-contrib-qunit to start Phantomjs to test this. It always timed out.
If I add F.open('/') in the beforeEach function it works. Please help me find out what causes this problem? Is there any workaround?

@Mikular
Copy link

Mikular commented May 28, 2015

Hey there, did you get any further with this? I think I might be experiencing a similar issue (see here).

@php-max
Copy link
Author

php-max commented May 28, 2015

No, FuncUnit just looks very sexy. but very hard to debug.

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