Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed json test after master -> ie10 merge
- Loading branch information
Showing
16 changed files
with
414 additions
and
294 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
YUI.add('node-tests', function (Y) { | ||
|
||
var Assert = Y.Assert, | ||
suite = new Y.Test.Suite('json Node.js tests'); | ||
|
||
suite.add(new Y.Test.Case({ | ||
name: 'Check native in Node.js', | ||
'should be using native parse': function() { | ||
Assert.isTrue(Y.JSON.useNativeParse, 'should be true here'); | ||
}, | ||
'should be using native stringify': function() { | ||
Assert.isTrue(Y.JSON.useNativeStringify, 'should be true here'); | ||
} | ||
})); | ||
|
||
Y.Test.Runner.add(suite); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env node | ||
|
||
process.chdir(__dirname); | ||
|
||
var YUITest = require('yuitest'), | ||
path = require('path'), | ||
fs = require('fs'), | ||
dir = path.join(__dirname, '../../../../build-npm/'), | ||
YUI = require(dir).YUI, | ||
json; | ||
|
||
|
||
YUI({useSync: true }).use('test', function(Y) { | ||
Y.Test.Runner = YUITest.TestRunner; | ||
Y.Test.Case = YUITest.TestCase; | ||
Y.Test.Suite = YUITest.TestSuite; | ||
Y.Assert = YUITest.Assert; | ||
|
||
Y.applyConfig({ | ||
modules: { | ||
'json-tests': { | ||
fullpath: path.join(__dirname, '../unit/assets/json-tests.js'), | ||
requires: ['json', 'test'] | ||
} | ||
} | ||
}); | ||
|
||
Y.use('json-tests'); | ||
|
||
Y.Test.Runner.setName('json cli tests'); | ||
|
||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env node | ||
|
||
process.chdir(__dirname); | ||
|
||
var YUITest = require('yuitest'), | ||
path = require('path'), | ||
fs = require('fs'), | ||
dir = path.join(__dirname, '../../../../build-npm/'), | ||
YUI = require(dir).YUI, | ||
json; | ||
|
||
|
||
YUI({useSync: true }).use('test', function(Y) { | ||
Y.Test.Runner = YUITest.TestRunner; | ||
Y.Test.Case = YUITest.TestCase; | ||
Y.Test.Suite = YUITest.TestSuite; | ||
Y.Assert = YUITest.Assert; | ||
|
||
Y.applyConfig({ | ||
modules: { | ||
'node-tests': { | ||
fullpath: path.join(__dirname, './lib/node.js'), | ||
requires: ['json', 'test'] | ||
} | ||
} | ||
}); | ||
|
||
Y.use('node-tests'); | ||
|
||
Y.Test.Runner.setName('json cli tests'); | ||
|
||
}); | ||
|
Oops, something went wrong.