aboutsummaryrefslogtreecommitdiffstats
path: root/external
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-03-21 13:24:31 -0400
committerScott González <scott.gonzalez@gmail.com>2012-03-21 13:24:31 -0400
commit392c003e636abd5ab169f0bd7e57dc3439bc3ad8 (patch)
tree8d76c6fd4ddc36eb9365463323cbe0c1e67ad837 /external
parent94c6f9ec84acc4c01f2dc16c009e2cf7a0fdbc5d (diff)
downloadjquery-ui-392c003e636abd5ab169f0bd7e57dc3439bc3ad8.tar.gz
jquery-ui-392c003e636abd5ab169f0bd7e57dc3439bc3ad8.zip
Update QUnit.
Diffstat (limited to 'external')
-rw-r--r--external/qunit.css2
-rw-r--r--external/qunit.js17
2 files changed, 11 insertions, 8 deletions
diff --git a/external/qunit.css b/external/qunit.css
index 4be7e3643..e3e10f9f9 100644
--- a/external/qunit.css
+++ b/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
*
diff --git a/external/qunit.js b/external/qunit.js
index f50407ae5..71aac0efa 100644
--- a/external/qunit.js
+++ b/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) {