Code compilation for Qunit doesn't work

Hey Guys,

the code compilation for the Qunit library (http://docs.jquery.com/Qunit) doesn't work in my PhpStorm (2.1.2).
I included the library like in this HowTo. But the editor doesn't show any code.

PhpStorm calls only:

Unresolved function or method test()


If I write the class name "Test." first of all, it will work very fine. Like in this example:

Test.test ... // Compilation works very well
test ... // Compilation doesn't work


That's the "JavaScript Libraries" and "Usage Scope" configuration.
qunit_01.pngqunit_02.png

Where is the/my mistake?

Thank you for your help and express regret for my (simple) bad English.

Greetings tye

2 comments
Comment actions Permalink

Maybe that relates to http://youtrack.jetbrains.net/issue/IDEA-68644. There are also some workarounds which you can try I think, see http://youtrack.jetbrains.net/issue/IDEA-68612.

0
Comment actions Permalink

Thank you for your answer.

But I solved the problem with an other workaround. I replaced the follwing line

(function(window) { ...

with

var QUnit = {};
(function(window) { ...

in Qunit (qunit-git.js)

With

QUnit.*

works all fine.

Thank you for your support.

Greetings
tye

0

Please sign in to leave a comment.