Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update QUnit.

  • Loading branch information...
commit 392c003e636abd5ab169f0bd7e57dc3439bc3ad8 1 parent 94c6f9e
@scottgonzalez scottgonzalez authored
Showing with 11 additions and 8 deletions.
  1. +1 −1  external/qunit.css
  2. +10 −7 external/qunit.js
View
2  external/qunit.css
@@ -1,5 +1,5 @@
/**
- * QUnit v1.4.0 - A JavaScript Unit Testing Framework
+ * QUnit v1.5.0pre - A JavaScript Unit Testing Framework
*
* http://docs.jquery.com/QUnit
*
View
17 external/qunit.js
@@ -1,5 +1,5 @@
/**
- * QUnit v1.4.0 - A JavaScript Unit Testing Framework
+ * QUnit v1.5.0pre - A JavaScript Unit Testing Framework
*
* http://docs.jquery.com/QUnit
*
@@ -370,7 +370,7 @@ var QUnit = {
}
try {
- block();
+ block.call(config.current.testEnvironment);
} catch (e) {
actual = e;
}
@@ -873,9 +873,11 @@ function done() {
// clear own sessionStorage items if all tests passed
if ( config.reorder && defined.sessionStorage && config.stats.bad === 0 ) {
- for (var key in sessionStorage) {
- if (sessionStorage.hasOwnProperty(key) && key.indexOf("qunit-test-") === 0 ) {
- sessionStorage.removeItem(key);
+ var key;
+ for ( var i = 0; i < sessionStorage.length; i++ ) {
+ key = sessionStorage.key( i++ );
+ if ( key.indexOf("qunit-test-") === 0 ) {
+ sessionStorage.removeItem( key );
}
}
}
@@ -912,8 +914,9 @@ function validTest( name ) {
return run;
}
-// so far supports only Firefox, Chrome and Opera (buggy)
-// could be extended in the future to use something like https://github.com/csnover/TraceKit
+// so far supports only Firefox, Chrome and Opera (buggy), Safari (for real exceptions)
+// Later Safari and IE10 are supposed to support error.stack as well
+// See also https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/Stack
function extractStacktrace( e, offset ) {
offset = offset || 3;
if (e.stacktrace) {
Please sign in to comment.
Something went wrong with that request. Please try again.