qunited 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/qunited/driver/support/qunit.js +7 -7
- data/lib/qunited/server/qunit.js +7 -7
- data/lib/qunited/version.rb +1 -1
- data/test/unit/driver_common_tests.rb +0 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25d9ac17833c374ea862542676ee0bfe27ef3f5f
|
4
|
+
data.tar.gz: fae84e5a735b0ec1d96c203ee1ce4c36daf1f74a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 755ebd6e01c2793be0a273ecd58f825310610b401e8a4d36fdd440de354d4d6ad9cac801f68b3e0f94368b832feaeaa1d212ce10dab6e8cdf09c39d7095c44e5
|
7
|
+
data.tar.gz: 960ae6284a9f90d5e172b5d7c03b57423dacb6ad91ab19af142b90628f9b7673946021e4b004321d0212c4be40865e54e2178a0c4e3a936171364eee46cb270b
|
@@ -521,7 +521,7 @@ assert = {
|
|
521
521
|
source = sourceFromStacktrace( 2 );
|
522
522
|
if ( source ) {
|
523
523
|
details.source = source;
|
524
|
-
msg += "<table><tr class='test-source'><th>Source: </th><td><
|
524
|
+
msg += "<table><tr class='test-source'><th>Source: </th><td><code>" + escapeText( source ) + "</code></td></tr></table>";
|
525
525
|
}
|
526
526
|
}
|
527
527
|
runLoggingCallbacks( "log", QUnit, details );
|
@@ -916,18 +916,18 @@ extend( QUnit, {
|
|
916
916
|
if ( !result ) {
|
917
917
|
expected = escapeText( QUnit.jsDump.parse(expected) );
|
918
918
|
actual = escapeText( QUnit.jsDump.parse(actual) );
|
919
|
-
output += "<table><tr class='test-expected'><th>Expected: </th><td><
|
919
|
+
output += "<table><tr class='test-expected'><th>Expected: </th><td><code>" + expected + "</code></td></tr>";
|
920
920
|
|
921
921
|
if ( actual !== expected ) {
|
922
|
-
output += "<tr class='test-actual'><th>Result: </th><td><
|
923
|
-
output += "<tr class='test-diff'><th>Diff: </th><td><
|
922
|
+
output += "<tr class='test-actual'><th>Result: </th><td><code>" + actual + "</code></td></tr>";
|
923
|
+
output += "<tr class='test-diff'><th>Diff: </th><td><code>" + QUnit.diff( expected, actual ) + "</code></td></tr>";
|
924
924
|
}
|
925
925
|
|
926
926
|
source = sourceFromStacktrace();
|
927
927
|
|
928
928
|
if ( source ) {
|
929
929
|
details.source = source;
|
930
|
-
output += "<tr class='test-source'><th>Source: </th><td><
|
930
|
+
output += "<tr class='test-source'><th>Source: </th><td><code>" + escapeText( source ) + "</code></td></tr>";
|
931
931
|
}
|
932
932
|
|
933
933
|
output += "</table>";
|
@@ -961,12 +961,12 @@ extend( QUnit, {
|
|
961
961
|
output += "<table>";
|
962
962
|
|
963
963
|
if ( actual ) {
|
964
|
-
output += "<tr class='test-actual'><th>Result: </th><td><
|
964
|
+
output += "<tr class='test-actual'><th>Result: </th><td><code>" + escapeText( actual ) + "</code></td></tr>";
|
965
965
|
}
|
966
966
|
|
967
967
|
if ( source ) {
|
968
968
|
details.source = source;
|
969
|
-
output += "<tr class='test-source'><th>Source: </th><td><
|
969
|
+
output += "<tr class='test-source'><th>Source: </th><td><code>" + escapeText( source ) + "</code></td></tr>";
|
970
970
|
}
|
971
971
|
|
972
972
|
output += "</table>";
|
data/lib/qunited/server/qunit.js
CHANGED
@@ -521,7 +521,7 @@ assert = {
|
|
521
521
|
source = sourceFromStacktrace( 2 );
|
522
522
|
if ( source ) {
|
523
523
|
details.source = source;
|
524
|
-
msg += "<table><tr class='test-source'><th>Source: </th><td><
|
524
|
+
msg += "<table><tr class='test-source'><th>Source: </th><td><code>" + escapeText( source ) + "</code></td></tr></table>";
|
525
525
|
}
|
526
526
|
}
|
527
527
|
runLoggingCallbacks( "log", QUnit, details );
|
@@ -916,18 +916,18 @@ extend( QUnit, {
|
|
916
916
|
if ( !result ) {
|
917
917
|
expected = escapeText( QUnit.jsDump.parse(expected) );
|
918
918
|
actual = escapeText( QUnit.jsDump.parse(actual) );
|
919
|
-
output += "<table><tr class='test-expected'><th>Expected: </th><td><
|
919
|
+
output += "<table><tr class='test-expected'><th>Expected: </th><td><code>" + expected + "</code></td></tr>";
|
920
920
|
|
921
921
|
if ( actual !== expected ) {
|
922
|
-
output += "<tr class='test-actual'><th>Result: </th><td><
|
923
|
-
output += "<tr class='test-diff'><th>Diff: </th><td><
|
922
|
+
output += "<tr class='test-actual'><th>Result: </th><td><code>" + actual + "</code></td></tr>";
|
923
|
+
output += "<tr class='test-diff'><th>Diff: </th><td><code>" + QUnit.diff( expected, actual ) + "</code></td></tr>";
|
924
924
|
}
|
925
925
|
|
926
926
|
source = sourceFromStacktrace();
|
927
927
|
|
928
928
|
if ( source ) {
|
929
929
|
details.source = source;
|
930
|
-
output += "<tr class='test-source'><th>Source: </th><td><
|
930
|
+
output += "<tr class='test-source'><th>Source: </th><td><code>" + escapeText( source ) + "</code></td></tr>";
|
931
931
|
}
|
932
932
|
|
933
933
|
output += "</table>";
|
@@ -961,12 +961,12 @@ extend( QUnit, {
|
|
961
961
|
output += "<table>";
|
962
962
|
|
963
963
|
if ( actual ) {
|
964
|
-
output += "<tr class='test-actual'><th>Result: </th><td><
|
964
|
+
output += "<tr class='test-actual'><th>Result: </th><td><code>" + escapeText( actual ) + "</code></td></tr>";
|
965
965
|
}
|
966
966
|
|
967
967
|
if ( source ) {
|
968
968
|
details.source = source;
|
969
|
-
output += "<tr class='test-source'><th>Source: </th><td><
|
969
|
+
output += "<tr class='test-source'><th>Source: </th><td><code>" + escapeText( source ) + "</code></td></tr>";
|
970
970
|
}
|
971
971
|
|
972
972
|
output += "</table>";
|
data/lib/qunited/version.rb
CHANGED
@@ -57,8 +57,6 @@ module QUnited::DriverCommonTests
|
|
57
57
|
File.join(FIXTURES_DIR, 'errors_project/test/javascripts/this_test_has_no_errors_in_it.js')])
|
58
58
|
|
59
59
|
driver.run
|
60
|
-
stderr = captured_stderr
|
61
|
-
assert stderr.size > 10, 'Got some stderr output to describe the crash'
|
62
60
|
@results = driver.results
|
63
61
|
assert total_failed_tests.size > 0, 'Should fail if syntax error in test'
|
64
62
|
end
|