qunit
QUnit + coffeescript scope
In Javascript polluting the global namespace is generally regarded as a bad thing. This is why Coffeescript wraps all of your Javascript in a (function() {}).call(this); wrapper.[详细]
2023-03-15 19:16 分类:问答Jquery, qunit selecting a substring of one classname
I am writing Qunit tests to test the validation engine of forms on our site.The structure of the form is standard with elements like the following:[详细]
2023-03-15 10:08 分类:问答Setting scope for $(this) in QUnit tests
How do you setup correct scoping in a QUnit test environment for testing callback functions? Code to test:[详细]
2023-03-13 16:10 分类:问答How do you test functions defined within $(document).ready()
I\'m trying to get a simple test going with QUnit but it won\'t locate functions defined within $(document).ready().[详细]
2023-03-13 15:16 分类:问答QUnit with setup and teardown for async ajax requests
Can someone provide an example of doing a setup/teardown model for async tests ajax requests on qunit?[详细]
2023-03-13 02:52 分类:问答jsMockito method invocation assertion not working as expected
I\'m having trouble making some method invocation assertions when testing a Javascript Object with QUnit + JsMockito. The basic infrastructure is working ok: Qunit, JsHamcrest(Jsmockito dependency) an[详细]
2023-03-08 06:34 分类:问答qunit - test exception message?
So QUnit provides the \"raise\" assertion to test if an exception is thrown. Is there any way to test the actual message thrown by the exception, though? For instance, say I have this function:[详细]
2023-03-04 16:31 分类:问答Qunit and JQuery 1.5.2
Following code works with JQuery 1.4.4. The result it prints is: Tests completed in 152 milliseconds. 1 tests of 1 passed, 0 failed.[详细]
2023-02-26 18:43 分类:问答I need a number of different full-page DOM samples for my qUnit test suite
I have a small amount of Javascript to test, but it operates on the entire page, for example, finding elements by numbered ids like \"#t34\".I need to create a handful of different pages to test the d[详细]
2023-02-19 23:11 分类:问答Events Failing To Trigger In QUnit Tests
I\'m new to QUnit. I\'m using jQuery (tested with 1.4.2 and 1.5.1) and the latest QUnit. I can trigger events ju开发者_运维问答st fine in a single test, but any test afterwards fails. Here\'s a simpli[详细]
2023-02-17 13:27 分类:问答
加载中,请稍侯......