Skip to content

Commit

Permalink
update test environment
Browse files Browse the repository at this point in the history
- update QUnit to 1.17.1
- update KnockoutJS to 3.3.0
  • Loading branch information
crissdev committed Feb 24, 2015
1 parent 730030c commit 5a71091
Show file tree
Hide file tree
Showing 7 changed files with 128 additions and 124 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"grunt": "~0.4.5",
"grunt-cli": "~0.1.13",
"grunt-contrib-jshint": "~0.11.0",
"grunt-contrib-uglify": "~0.7.0",
"grunt-contrib-concat": "~0.5.0",
"grunt-contrib-uglify": "~0.8.0",
"grunt-contrib-concat": "~0.5.1",
"grunt-contrib-qunit": "~0.5.2",
"grunt-contrib-watch": "~0.6.1",
"grunt-clear": "~0.2.1",
"jshint-stylish": "~1.0.0"
"jshint-stylish": "~1.0.1"
},
"scripts": {
"test": "grunt test"
Expand Down
111 changes: 0 additions & 111 deletions test/lib/knockout-3.2.0.js

This file was deleted.

115 changes: 115 additions & 0 deletions test/lib/knockout-3.3.0.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions test/lib/qunit-1.17.0.css → test/lib/qunit-1.17.1.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*!
* QUnit 1.17.0
* QUnit 1.17.1
* http://qunitjs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-01-19T11:58Z
* Date: 2015-01-20T19:39Z
*/

/** Font Family and Sizes */
Expand Down
6 changes: 3 additions & 3 deletions test/lib/qunit-1.17.0.js → test/lib/qunit-1.17.1.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*!
* QUnit 1.17.0
* QUnit 1.17.1
* http://qunitjs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-01-19T11:58Z
* Date: 2015-01-20T19:39Z
*/

(function( window ) {
Expand Down Expand Up @@ -2522,7 +2522,7 @@ function toolbarModuleFilter() {
moduleFilter = document.createElement( "span" ),
moduleFilterHtml = toolbarModuleFilterHtml();

if ( !moduleFilterHtml ) {
if ( !toolbar || !moduleFilterHtml ) {
return false;
}

Expand Down
8 changes: 4 additions & 4 deletions test/test-runner.htm
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<link href="lib/qunit-1.17.0.css" rel="stylesheet" type="text/css" />
<script src="lib/qunit-1.17.0.js" type="text/javascript"></script>
<link href="lib/qunit-1.17.1.css" rel="stylesheet" type="text/css" />
<script src="lib/qunit-1.17.1.js" type="text/javascript"></script>
<!--We only include jQuery for testing purposes (testing UI changes)-->
<script src="lib/jquery-2.1.3.js" type="text/javascript"></script>
<script src="lib/knockout-3.2.0.js" type="text/javascript"></script>
<script src="lib/knockout-3.3.0.js" type="text/javascript"></script>
<script src="../dist/knockout.validation.js" type="text/javascript"></script>

<script src="../localization/ar-JO.js" type="text/javascript"></script>
<script src="../localization/bg-BG.js" type="text/javascript"></script>
<script src="../localization/ca-ES.js" type="text/javascript"></script>
<script src="../localization/cs-CZ.js" type="text/javascript"></script>
Expand Down Expand Up @@ -37,7 +38,6 @@
<script src="../localization/tr-TR.js" type="text/javascript"></script>
<script src="../localization/zh-CN.js" type="text/javascript"></script>
<script src="../localization/zh-TW.js" type="text/javascript"></script>
<script src="../localization/ar-JO.js" type="text/javascript"></script>

<!--test Scripts here-->
<script src="asserts.js" type="text/javascript"></script>
Expand Down
2 changes: 1 addition & 1 deletion test/validation-ui-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ QUnit.test('Issue #519 - validationElement can be applied before element is vali
addTestHtml('<input type="text" id="testElement" data-bind="value: testObj, validationElement: testObj"/>');
applyTestBindings(vm);

assert.strictEqual($("#testElement").attr("class"), "");
assert.strictEqual(!!$("#testElement").attr("class"), false);
assert.ok(!ko.validation.utils.isValidatable(vm.testObj));

vm.testObj.extend({ required: true });
Expand Down

0 comments on commit 5a71091

Please sign in to comment.