carlorizzante / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

QUnitAdapter change 'equals' to 'equal' #285

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Attempt to  use the QUnitAdapter with any recent QUnit development which 
uses 'equal()' instead of 'equals()'.

What is the expected output? What do you see instead?
The expected output would be successful tests. Instead we see errors because 
equal() is not defined.

What version of the product are you using? On what operating system?
jstd-maven-plugin version 1.3.2.5
QUnitAdapter files: QUnitAdapter.js and equiv.js r1078

Please provide any additional information below.
As documented here: http://docs.jquery.com/QUnit/equal
equals() was renamed to equal()

Original issue reported on code.google.com by stewart....@gmail.com on 24 Oct 2011 at 10:27

GoogleCodeExporter commented 8 years ago
notEqual() and strictEqual() functions are not working too:

test("some other test", function() {
    expect(2);
    notEqual( true, false, "failing test" );
    strictEqual( true, true, "passing test" );
});

Maybe it is worth to switch to the 
https://github.com/jivesoftware/QUnitTestRunnerPlugin , because 
QUnitTestRunnerPlugin uses the actual QUnit framework to run tests.

Original comment by Sergey.S...@gmail.com on 26 Nov 2011 at 1:33

GoogleCodeExporter commented 8 years ago
Suggetion to start supporting new qunit syntax: Patch line 56 of the 
QUnitAdapter to:
    window.equal = window.equals = function(a, b, msg) {

Original comment by mcbee...@gmail.com on 8 May 2012 at 1:19