qunit Questions

2

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...
Enthetic asked 28/3, 2011 at 1:47

5

Solved

I've been looking into javascript test suites and I have found QUnit to be very interesting. I understand how to test computational code, but... How do you test javascript applications written pri...
Barny asked 16/9, 2009 at 19:38

2

Solved

I love qUnit for JavaScript unit testing, and have successfully used it for a large web hosting platform that is almost exclusively AJAX. However, I have to run it in a browser by hand, or as a Win...
Cantoris asked 17/12, 2010 at 9:46

3

Solved

I've started working with Qunit to do unit testing on my code, but am striking problems comparing objects. The code I'm testing dynamically creates an object: var fields = ['id','name']; var resu...
Borax asked 17/12, 2010 at 3:39

3

Solved

The introduction to QUnit over at netTuts.com spawns an interesting exchange (never resolved) over how to apply unit tests against actions that manipulate the DOM. The following quote (Alex York) g...
Springing asked 20/10, 2010 at 1:40

3

Solved

I have a standard ASP.NET MVC (version 2 preview 2) solution with the actual project and server-side unit tests in separate projects. Because this project is very client-side heavy, I want to mak...
Restless asked 16/10, 2009 at 5:17

2

Solved

I am using QUnit, which is excellent. I have enclosed my JS app in the (function () {})(); sandbox. This hides a lot of code that I don't want public, but I also need to test that code. Here is a...
Unstopped asked 9/2, 2010 at 16:5

1

Solved

Is there a way to test JavaScript keyboard event handlers (for keypress, keyup, keydown events)? I know I can declare event handlers like this: function keyUpEvHandler(e) { ... // code here } $...
Microscopium asked 20/7, 2009 at 15:26

© 2022 - 2024 — McMap. All rights reserved.