cssesc-source 0.1.0 → 1.0.1
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 +5 -13
- data/vendor/LICENSE-MIT.txt +1 -1
- data/vendor/README.md +44 -50
- data/vendor/bin/cssesc +103 -109
- data/vendor/cssesc.js +114 -161
- data/vendor/man/cssesc.1 +2 -2
- data/vendor/package-lock.json +1664 -0
- data/vendor/package.json +47 -54
- metadata +9 -908
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/MIT-LICENSE.txt +0 -21
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/README.md +0 -43
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/bin/stripcolorcodes.js +0 -18
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/index.js +0 -3
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/package.json +0 -42
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/test/fixture/with-colors +0 -2
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/test/fixture/without-colors +0 -2
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/test/stripcolorcodes-test.js +0 -20
- data/vendor/node_modules/grunt-shell/package.json +0 -53
- data/vendor/node_modules/grunt-shell/readme.md +0 -221
- data/vendor/node_modules/grunt-shell/tasks/shell.js +0 -54
- data/vendor/node_modules/grunt-template/LICENSE-MIT.txt +0 -20
- data/vendor/node_modules/grunt-template/README.md +0 -123
- data/vendor/node_modules/grunt-template/package.json +0 -50
- data/vendor/node_modules/grunt-template/tasks/template.js +0 -44
- data/vendor/node_modules/grunt/CONTRIBUTING.md +0 -1
- data/vendor/node_modules/grunt/LICENSE-MIT +0 -22
- data/vendor/node_modules/grunt/README.md +0 -16
- data/vendor/node_modules/grunt/internal-tasks/bump.js +0 -151
- data/vendor/node_modules/grunt/internal-tasks/subgrunt.js +0 -34
- data/vendor/node_modules/grunt/lib/grunt.js +0 -156
- data/vendor/node_modules/grunt/lib/grunt/cli.js +0 -128
- data/vendor/node_modules/grunt/lib/grunt/config.js +0 -118
- data/vendor/node_modules/grunt/lib/grunt/event.js +0 -16
- data/vendor/node_modules/grunt/lib/grunt/fail.js +0 -84
- data/vendor/node_modules/grunt/lib/grunt/file.js +0 -440
- data/vendor/node_modules/grunt/lib/grunt/help.js +0 -129
- data/vendor/node_modules/grunt/lib/grunt/log.js +0 -352
- data/vendor/node_modules/grunt/lib/grunt/option.js +0 -42
- data/vendor/node_modules/grunt/lib/grunt/task.js +0 -451
- data/vendor/node_modules/grunt/lib/grunt/template.js +0 -95
- data/vendor/node_modules/grunt/lib/grunt/util.js +0 -188
- data/vendor/node_modules/grunt/lib/util/task.js +0 -323
- data/vendor/node_modules/grunt/node_modules/async/LICENSE +0 -19
- data/vendor/node_modules/grunt/node_modules/async/Makefile +0 -25
- data/vendor/node_modules/grunt/node_modules/async/README.md +0 -1021
- data/vendor/node_modules/grunt/node_modules/async/index.js +0 -3
- data/vendor/node_modules/grunt/node_modules/async/lib/async.js +0 -692
- data/vendor/node_modules/grunt/node_modules/async/package.json +0 -32
- data/vendor/node_modules/grunt/node_modules/coffee-script/CNAME +0 -1
- data/vendor/node_modules/grunt/node_modules/coffee-script/LICENSE +0 -22
- data/vendor/node_modules/grunt/node_modules/coffee-script/README +0 -51
- data/vendor/node_modules/grunt/node_modules/coffee-script/Rakefile +0 -78
- data/vendor/node_modules/grunt/node_modules/coffee-script/bin/cake +0 -7
- data/vendor/node_modules/grunt/node_modules/coffee-script/bin/coffee +0 -7
- data/vendor/node_modules/grunt/node_modules/coffee-script/extras/jsl.conf +0 -44
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/browser.js +0 -92
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/cake.js +0 -111
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/coffee-script.js +0 -167
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/command.js +0 -500
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/grammar.js +0 -606
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/helpers.js +0 -77
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/index.js +0 -11
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/lexer.js +0 -788
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/nodes.js +0 -2986
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/optparse.js +0 -138
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/parser.js +0 -683
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/repl.js +0 -261
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/rewriter.js +0 -349
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/scope.js +0 -146
- data/vendor/node_modules/grunt/node_modules/coffee-script/package.json +0 -47
- data/vendor/node_modules/grunt/node_modules/colors/MIT-LICENSE.txt +0 -22
- data/vendor/node_modules/grunt/node_modules/colors/ReadMe.md +0 -77
- data/vendor/node_modules/grunt/node_modules/colors/colors.js +0 -342
- data/vendor/node_modules/grunt/node_modules/colors/example.html +0 -76
- data/vendor/node_modules/grunt/node_modules/colors/example.js +0 -77
- data/vendor/node_modules/grunt/node_modules/colors/package.json +0 -29
- data/vendor/node_modules/grunt/node_modules/colors/test.js +0 -70
- data/vendor/node_modules/grunt/node_modules/colors/themes/winston-dark.js +0 -12
- data/vendor/node_modules/grunt/node_modules/colors/themes/winston-light.js +0 -12
- data/vendor/node_modules/grunt/node_modules/dateformat/Readme.md +0 -67
- data/vendor/node_modules/grunt/node_modules/dateformat/lib/dateformat.js +0 -165
- data/vendor/node_modules/grunt/node_modules/dateformat/package.json +0 -20
- data/vendor/node_modules/grunt/node_modules/dateformat/test/test_weekofyear.js +0 -4
- data/vendor/node_modules/grunt/node_modules/dateformat/test/test_weekofyear.sh +0 -27
- data/vendor/node_modules/grunt/node_modules/eventemitter2/README.md +0 -212
- data/vendor/node_modules/grunt/node_modules/eventemitter2/index.js +0 -1
- data/vendor/node_modules/grunt/node_modules/eventemitter2/lib/eventemitter2.js +0 -561
- data/vendor/node_modules/grunt/node_modules/eventemitter2/package.json +0 -62
- data/vendor/node_modules/grunt/node_modules/exit/Gruntfile.js +0 -48
- data/vendor/node_modules/grunt/node_modules/exit/LICENSE-MIT +0 -22
- data/vendor/node_modules/grunt/node_modules/exit/README.md +0 -75
- data/vendor/node_modules/grunt/node_modules/exit/lib/exit.js +0 -41
- data/vendor/node_modules/grunt/node_modules/exit/package.json +0 -51
- data/vendor/node_modules/grunt/node_modules/exit/test/exit_test.js +0 -121
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/10-stderr.txt +0 -10
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/10-stdout-stderr.txt +0 -20
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/10-stdout.txt +0 -10
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/100-stderr.txt +0 -100
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/100-stdout-stderr.txt +0 -200
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/100-stdout.txt +0 -100
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/1000-stderr.txt +0 -1000
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/1000-stdout-stderr.txt +0 -2000
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/1000-stdout.txt +0 -1000
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/create-files.sh +0 -8
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/log-broken.js +0 -23
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/log.js +0 -25
- data/vendor/node_modules/grunt/node_modules/findup-sync/Gruntfile.js +0 -25
- data/vendor/node_modules/grunt/node_modules/findup-sync/LICENSE-MIT +0 -22
- data/vendor/node_modules/grunt/node_modules/findup-sync/README.md +0 -44
- data/vendor/node_modules/grunt/node_modules/findup-sync/lib/findup-sync.js +0 -46
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/README.md +0 -164
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.compat.js +0 -5152
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.compat.min.js +0 -42
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.js +0 -4983
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.min.js +0 -40
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.underscore.js +0 -4307
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.underscore.min.js +0 -34
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/package.json +0 -62
- data/vendor/node_modules/grunt/node_modules/findup-sync/package.json +0 -48
- data/vendor/node_modules/grunt/node_modules/findup-sync/test/findup-sync_test.js +0 -48
- data/vendor/node_modules/grunt/node_modules/findup-sync/test/fixtures/a.txt +0 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/test/fixtures/a/b/bar.txt +0 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/test/fixtures/a/foo.txt +0 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/test/fixtures/aaa.txt +0 -0
- data/vendor/node_modules/grunt/node_modules/getobject/Gruntfile.js +0 -48
- data/vendor/node_modules/grunt/node_modules/getobject/LICENSE-MIT +0 -22
- data/vendor/node_modules/grunt/node_modules/getobject/README.md +0 -20
- data/vendor/node_modules/grunt/node_modules/getobject/lib/getobject.js +0 -60
- data/vendor/node_modules/grunt/node_modules/getobject/package.json +0 -48
- data/vendor/node_modules/grunt/node_modules/getobject/test/namespace_test.js +0 -51
- data/vendor/node_modules/grunt/node_modules/glob/LICENSE +0 -27
- data/vendor/node_modules/grunt/node_modules/glob/README.md +0 -233
- data/vendor/node_modules/grunt/node_modules/glob/examples/g.js +0 -9
- data/vendor/node_modules/grunt/node_modules/glob/examples/usr-local.js +0 -9
- data/vendor/node_modules/grunt/node_modules/glob/glob.js +0 -643
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/LICENSE +0 -27
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/README.md +0 -33
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/graceful-fs.js +0 -442
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/package.json +0 -49
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/test/open.js +0 -46
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/test/ulimit.js +0 -158
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/inherits/README.md +0 -51
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/inherits/inherits.js +0 -29
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/inherits/package.json +0 -30
- data/vendor/node_modules/grunt/node_modules/glob/package.json +0 -40
- data/vendor/node_modules/grunt/node_modules/glob/test/00-setup.js +0 -176
- data/vendor/node_modules/grunt/node_modules/glob/test/bash-comparison.js +0 -63
- data/vendor/node_modules/grunt/node_modules/glob/test/bash-results.json +0 -348
- data/vendor/node_modules/grunt/node_modules/glob/test/cwd-test.js +0 -55
- data/vendor/node_modules/grunt/node_modules/glob/test/mark.js +0 -74
- data/vendor/node_modules/grunt/node_modules/glob/test/nocase-nomagic.js +0 -113
- data/vendor/node_modules/grunt/node_modules/glob/test/pause-resume.js +0 -73
- data/vendor/node_modules/grunt/node_modules/glob/test/root-nomount.js +0 -39
- data/vendor/node_modules/grunt/node_modules/glob/test/root.js +0 -46
- data/vendor/node_modules/grunt/node_modules/glob/test/zz-cleanup.js +0 -11
- data/vendor/node_modules/grunt/node_modules/hooker/LICENSE-MIT +0 -22
- data/vendor/node_modules/grunt/node_modules/hooker/README.md +0 -186
- data/vendor/node_modules/grunt/node_modules/hooker/child.js +0 -101
- data/vendor/node_modules/grunt/node_modules/hooker/dist/ba-hooker.js +0 -169
- data/vendor/node_modules/grunt/node_modules/hooker/dist/ba-hooker.min.js +0 -4
- data/vendor/node_modules/grunt/node_modules/hooker/grunt.js +0 -47
- data/vendor/node_modules/grunt/node_modules/hooker/lib/hooker.js +0 -174
- data/vendor/node_modules/grunt/node_modules/hooker/package.json +0 -45
- data/vendor/node_modules/grunt/node_modules/hooker/parent.js +0 -17
- data/vendor/node_modules/grunt/node_modules/hooker/test/hooker_test.js +0 -435
- data/vendor/node_modules/grunt/node_modules/iconv-lite/LICENSE +0 -21
- data/vendor/node_modules/grunt/node_modules/iconv-lite/README.md +0 -72
- data/vendor/node_modules/grunt/node_modules/iconv-lite/README.md~ +0 -54
- data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/big5.js +0 -9
- data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/gbk.js +0 -9
- data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/singlebyte.js +0 -340
- data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/table/big5.js +0 -1
- data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/table/gbk.js +0 -1
- data/vendor/node_modules/grunt/node_modules/iconv-lite/generation/generate-big5-table.js +0 -25
- data/vendor/node_modules/grunt/node_modules/iconv-lite/generation/generate-singlebyte.js +0 -142
- data/vendor/node_modules/grunt/node_modules/iconv-lite/index.js +0 -231
- data/vendor/node_modules/grunt/node_modules/iconv-lite/package.json +0 -80
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/big5-test.js +0 -36
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/big5File.txt +0 -13
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/cyrillic-test.js +0 -86
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/gbk-test.js +0 -38
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/gbkFile.txt +0 -14
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/greek-test.js +0 -79
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/main-test.js +0 -55
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/performance.js +0 -67
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/turkish-test.js +0 -90
- data/vendor/node_modules/grunt/node_modules/js-yaml/HISTORY.md +0 -155
- data/vendor/node_modules/grunt/node_modules/js-yaml/LICENSE +0 -21
- data/vendor/node_modules/grunt/node_modules/js-yaml/README.md +0 -249
- data/vendor/node_modules/grunt/node_modules/js-yaml/bin/js-yaml.js +0 -125
- data/vendor/node_modules/grunt/node_modules/js-yaml/examples/custom_types.js +0 -104
- data/vendor/node_modules/grunt/node_modules/js-yaml/examples/custom_types.yaml +0 -18
- data/vendor/node_modules/grunt/node_modules/js-yaml/examples/dumper.js +0 -31
- data/vendor/node_modules/grunt/node_modules/js-yaml/examples/dumper.json +0 -22
- data/vendor/node_modules/grunt/node_modules/js-yaml/examples/sample_document.js +0 -15
- data/vendor/node_modules/grunt/node_modules/js-yaml/examples/sample_document.yaml +0 -197
- data/vendor/node_modules/grunt/node_modules/js-yaml/index.js +0 -1
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml.js +0 -33
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/common.js +0 -60
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/dumper.js +0 -437
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/exception.js +0 -25
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/loader.js +0 -1549
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/mark.js +0 -78
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/require.js +0 -23
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema.js +0 -103
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema/default.js +0 -16
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema/minimal.js +0 -13
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema/safe.js +0 -25
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type.js +0 -82
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/binary.js +0 -118
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/bool.js +0 -74
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/float.js +0 -102
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/int.js +0 -85
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/js/function.js +0 -56
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +0 -56
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +0 -28
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/map.js +0 -11
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/merge.js +0 -18
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/null.js +0 -36
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/omap.js +0 -53
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/pairs.js +0 -41
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/seq.js +0 -11
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/set.js +0 -31
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/str.js +0 -11
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +0 -91
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/HISTORY.md +0 -109
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/LICENSE +0 -21
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/README.md +0 -239
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/arguments.js +0 -36
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/choice.js +0 -22
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/constants.js +0 -59
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/help.js +0 -13
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/nargs.js +0 -33
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/parents.js +0 -28
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/prefix_chars.js +0 -23
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/sub_commands.js +0 -49
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/sum.js +0 -35
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/testformatters.js +0 -270
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/index.js +0 -1
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action.js +0 -146
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/append.js +0 -55
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/append/constant.js +0 -47
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/count.js +0 -40
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/help.js +0 -48
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/store.js +0 -50
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/store/constant.js +0 -43
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/store/false.js +0 -27
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/store/true.js +0 -26
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/subparsers.js +0 -148
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/version.js +0 -50
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action_container.js +0 -481
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argparse.js +0 -14
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument/error.js +0 -50
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument/exclusive.js +0 -54
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument/group.js +0 -75
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument_parser.js +0 -1165
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/const.js +0 -18
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/help/added_formatters.js +0 -88
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/help/formatter.js +0 -803
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/namespace.js +0 -77
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Gemfile +0 -4
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Gemfile.lock +0 -17
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/README.markdown +0 -814
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Rakefile +0 -23
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/component.json +0 -11
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/dist/underscore.string.min.js +0 -1
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/lib/underscore.string.js +0 -673
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/libpeerconnection.log +0 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/package.json +0 -73
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/run-qunit.js +0 -45
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/speed.js +0 -148
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/strings.js +0 -685
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/strings_standalone.js +0 -12
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test.html +0 -31
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_standalone.html +0 -18
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/arrays.js +0 -200
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/chaining.js +0 -59
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/collections.js +0 -426
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/functions.js +0 -259
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/index.html +0 -45
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/objects.js +0 -548
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/speed.js +0 -75
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/utility.js +0 -249
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/jquery.js +0 -9404
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/jslitmus.js +0 -670
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/qunit.css +0 -235
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/qunit.js +0 -1977
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/underscore.js +0 -1201
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/CNAME +0 -1
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/CONTRIBUTING.md +0 -9
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/LICENSE +0 -22
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/README.md +0 -19
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/favicon.ico +0 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/index.html +0 -2467
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/index.js +0 -1
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/package.json +0 -35
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/underscore-min.js +0 -1
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/underscore.js +0 -1226
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/package.json +0 -50
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/README.md +0 -73
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/bin/esparse.js +0 -117
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/bin/esvalidate.js +0 -177
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/esprima.js +0 -3908
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/package.json +0 -59
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/compat.js +0 -239
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/reflect.js +0 -422
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/run.js +0 -66
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/runner.js +0 -387
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/test.js +0 -20238
- data/vendor/node_modules/grunt/node_modules/js-yaml/package.json +0 -60
- data/vendor/node_modules/grunt/node_modules/lodash/README.md +0 -140
- data/vendor/node_modules/grunt/node_modules/lodash/lodash.js +0 -4258
- data/vendor/node_modules/grunt/node_modules/lodash/lodash.min.js +0 -35
- data/vendor/node_modules/grunt/node_modules/lodash/lodash.underscore.js +0 -3688
- data/vendor/node_modules/grunt/node_modules/lodash/lodash.underscore.min.js +0 -28
- data/vendor/node_modules/grunt/node_modules/lodash/package.json +0 -62
- data/vendor/node_modules/grunt/node_modules/minimatch/LICENSE +0 -23
- data/vendor/node_modules/grunt/node_modules/minimatch/README.md +0 -218
- data/vendor/node_modules/grunt/node_modules/minimatch/minimatch.js +0 -1055
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/CONTRIBUTORS +0 -14
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/LICENSE +0 -23
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/README.md +0 -97
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/lib/lru-cache.js +0 -252
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/package.json +0 -33
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/test/basic.js +0 -369
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/test/foreach.js +0 -52
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/test/memory-leak.js +0 -50
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/LICENSE +0 -27
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/README.md +0 -53
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/bench.js +0 -283
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/package.json +0 -42
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/sigmund.js +0 -39
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/test/basic.js +0 -24
- data/vendor/node_modules/grunt/node_modules/minimatch/package.json +0 -40
- data/vendor/node_modules/grunt/node_modules/minimatch/test/basic.js +0 -399
- data/vendor/node_modules/grunt/node_modules/minimatch/test/brace-expand.js +0 -33
- data/vendor/node_modules/grunt/node_modules/minimatch/test/caching.js +0 -14
- data/vendor/node_modules/grunt/node_modules/minimatch/test/defaults.js +0 -274
- data/vendor/node_modules/grunt/node_modules/minimatch/test/extglob-ending-with-state-char.js +0 -8
- data/vendor/node_modules/grunt/node_modules/nopt/LICENSE +0 -23
- data/vendor/node_modules/grunt/node_modules/nopt/README.md +0 -208
- data/vendor/node_modules/grunt/node_modules/nopt/bin/nopt.js +0 -44
- data/vendor/node_modules/grunt/node_modules/nopt/examples/my-program.js +0 -30
- data/vendor/node_modules/grunt/node_modules/nopt/lib/nopt.js +0 -552
- data/vendor/node_modules/grunt/node_modules/nopt/node_modules/abbrev/LICENSE +0 -23
- data/vendor/node_modules/grunt/node_modules/nopt/node_modules/abbrev/README.md +0 -23
- data/vendor/node_modules/grunt/node_modules/nopt/node_modules/abbrev/lib/abbrev.js +0 -111
- data/vendor/node_modules/grunt/node_modules/nopt/node_modules/abbrev/package.json +0 -29
- data/vendor/node_modules/grunt/node_modules/nopt/package.json +0 -36
- data/vendor/node_modules/grunt/node_modules/rimraf/AUTHORS +0 -6
- data/vendor/node_modules/grunt/node_modules/rimraf/LICENSE +0 -23
- data/vendor/node_modules/grunt/node_modules/rimraf/README.md +0 -21
- data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/LICENSE +0 -23
- data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/README.md +0 -5
- data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/graceful-fs.js +0 -312
- data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/package.json +0 -40
- data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/test/open.js +0 -41
- data/vendor/node_modules/grunt/node_modules/rimraf/package.json +0 -59
- data/vendor/node_modules/grunt/node_modules/rimraf/rimraf.js +0 -161
- data/vendor/node_modules/grunt/node_modules/rimraf/test/run.sh +0 -10
- data/vendor/node_modules/grunt/node_modules/rimraf/test/setup.sh +0 -47
- data/vendor/node_modules/grunt/node_modules/rimraf/test/test-async.js +0 -5
- data/vendor/node_modules/grunt/node_modules/rimraf/test/test-fiber.js +0 -0
- data/vendor/node_modules/grunt/node_modules/rimraf/test/test-sync.js +0 -3
- data/vendor/node_modules/grunt/node_modules/underscore.string/Gemfile +0 -5
- data/vendor/node_modules/grunt/node_modules/underscore.string/Gemfile.lock +0 -34
- data/vendor/node_modules/grunt/node_modules/underscore.string/README.markdown +0 -668
- data/vendor/node_modules/grunt/node_modules/underscore.string/Rakefile +0 -28
- data/vendor/node_modules/grunt/node_modules/underscore.string/dist/underscore.string.min.js +0 -1
- data/vendor/node_modules/grunt/node_modules/underscore.string/lib/underscore.string.js +0 -525
- data/vendor/node_modules/grunt/node_modules/underscore.string/package.json +0 -72
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/run-qunit.js +0 -44
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/speed.js +0 -138
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/strings.js +0 -438
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/strings_standalone.js +0 -12
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test.html +0 -31
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_standalone.html +0 -18
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/arrays.js +0 -166
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/chaining.js +0 -59
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/collections.js +0 -270
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/functions.js +0 -198
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/objects.js +0 -535
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/speed.js +0 -70
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/temp.js +0 -27
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/temp_tests.html +0 -19
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/test.html +0 -43
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/utility.js +0 -155
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/vendor/jquery.js +0 -19
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/vendor/jslitmus.js +0 -670
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/vendor/qunit.css +0 -196
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/vendor/qunit.js +0 -2360
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/underscore.js +0 -999
- data/vendor/node_modules/grunt/node_modules/which/LICENSE +0 -23
- data/vendor/node_modules/grunt/node_modules/which/README.md +0 -5
- data/vendor/node_modules/grunt/node_modules/which/bin/which +0 -14
- data/vendor/node_modules/grunt/node_modules/which/package.json +0 -31
- data/vendor/node_modules/grunt/node_modules/which/which.js +0 -104
- data/vendor/node_modules/grunt/package.json +0 -82
- data/vendor/node_modules/istanbul/CHANGELOG.md +0 -57
- data/vendor/node_modules/istanbul/LICENSE +0 -24
- data/vendor/node_modules/istanbul/README.md +0 -205
- data/vendor/node_modules/istanbul/index.js +0 -115
- data/vendor/node_modules/istanbul/lib/cli.js +0 -74
- data/vendor/node_modules/istanbul/lib/collector.js +0 -121
- data/vendor/node_modules/istanbul/lib/command/check-coverage.js +0 -115
- data/vendor/node_modules/istanbul/lib/command/common/run-with-cover.js +0 -199
- data/vendor/node_modules/istanbul/lib/command/cover.js +0 -33
- data/vendor/node_modules/istanbul/lib/command/help.js +0 -58
- data/vendor/node_modules/istanbul/lib/command/index.js +0 -33
- data/vendor/node_modules/istanbul/lib/command/instrument.js +0 -244
- data/vendor/node_modules/istanbul/lib/command/report.js +0 -97
- data/vendor/node_modules/istanbul/lib/command/test.js +0 -31
- data/vendor/node_modules/istanbul/lib/hook.js +0 -187
- data/vendor/node_modules/istanbul/lib/instrumenter.js +0 -759
- data/vendor/node_modules/istanbul/lib/object-utils.js +0 -341
- data/vendor/node_modules/istanbul/lib/register-plugins.js +0 -15
- data/vendor/node_modules/istanbul/lib/report/cobertura.js +0 -207
- data/vendor/node_modules/istanbul/lib/report/html.js +0 -517
- data/vendor/node_modules/istanbul/lib/report/index.js +0 -60
- data/vendor/node_modules/istanbul/lib/report/json.js +0 -55
- data/vendor/node_modules/istanbul/lib/report/lcov.js +0 -49
- data/vendor/node_modules/istanbul/lib/report/lcovonly.js +0 -93
- data/vendor/node_modules/istanbul/lib/report/none.js +0 -20
- data/vendor/node_modules/istanbul/lib/report/teamcity.js +0 -82
- data/vendor/node_modules/istanbul/lib/report/templates/foot.txt +0 -102
- data/vendor/node_modules/istanbul/lib/report/templates/head.txt +0 -200
- data/vendor/node_modules/istanbul/lib/report/text-summary.js +0 -72
- data/vendor/node_modules/istanbul/lib/report/text.js +0 -210
- data/vendor/node_modules/istanbul/lib/store/fslookup.js +0 -60
- data/vendor/node_modules/istanbul/lib/store/index.js +0 -122
- data/vendor/node_modules/istanbul/lib/store/memory.js +0 -55
- data/vendor/node_modules/istanbul/lib/store/tmp.js +0 -80
- data/vendor/node_modules/istanbul/lib/util/factory.js +0 -88
- data/vendor/node_modules/istanbul/lib/util/file-matcher.js +0 -60
- data/vendor/node_modules/istanbul/lib/util/file-writer.js +0 -131
- data/vendor/node_modules/istanbul/lib/util/flow-control.js +0 -26
- data/vendor/node_modules/istanbul/lib/util/help-formatter.js +0 -24
- data/vendor/node_modules/istanbul/lib/util/input-error.js +0 -12
- data/vendor/node_modules/istanbul/lib/util/insertion-text.js +0 -109
- data/vendor/node_modules/istanbul/lib/util/meta.js +0 -13
- data/vendor/node_modules/istanbul/lib/util/tree-summarizer.js +0 -213
- data/vendor/node_modules/istanbul/lib/util/writer.js +0 -56
- data/vendor/node_modules/istanbul/lib/util/yui-load-hook.js +0 -49
- data/vendor/node_modules/istanbul/lib/vendor/prettify.css +0 -1
- data/vendor/node_modules/istanbul/lib/vendor/prettify.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/abbrev/LICENSE +0 -23
- data/vendor/node_modules/istanbul/node_modules/abbrev/README.md +0 -23
- data/vendor/node_modules/istanbul/node_modules/abbrev/lib/abbrev.js +0 -111
- data/vendor/node_modules/istanbul/node_modules/abbrev/package.json +0 -29
- data/vendor/node_modules/istanbul/node_modules/async/LICENSE +0 -19
- data/vendor/node_modules/istanbul/node_modules/async/README.md +0 -1414
- data/vendor/node_modules/istanbul/node_modules/async/component.json +0 -11
- data/vendor/node_modules/istanbul/node_modules/async/lib/async.js +0 -955
- data/vendor/node_modules/istanbul/node_modules/async/package.json +0 -43
- data/vendor/node_modules/istanbul/node_modules/escodegen/LICENSE.BSD +0 -19
- data/vendor/node_modules/istanbul/node_modules/escodegen/LICENSE.source-map +0 -27
- data/vendor/node_modules/istanbul/node_modules/escodegen/README.md +0 -99
- data/vendor/node_modules/istanbul/node_modules/escodegen/bin/escodegen.js +0 -45
- data/vendor/node_modules/istanbul/node_modules/escodegen/bin/esgenerate.js +0 -45
- data/vendor/node_modules/istanbul/node_modules/escodegen/component.json +0 -48
- data/vendor/node_modules/istanbul/node_modules/escodegen/escodegen.browser.js +0 -3072
- data/vendor/node_modules/istanbul/node_modules/escodegen/escodegen.js +0 -2275
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/estraverse/LICENSE.BSD +0 -19
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/estraverse/README.md +0 -29
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/estraverse/estraverse.js +0 -315
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/estraverse/package.json +0 -41
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/CHANGELOG.md +0 -112
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/LICENSE +0 -28
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/Makefile.dryice.js +0 -166
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/README.md +0 -434
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/assert-shim.js +0 -56
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/mini-require.js +0 -152
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/prefix-source-map.jsm +0 -20
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/prefix-utils.jsm +0 -18
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/suffix-browser.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/suffix-source-map.jsm +0 -6
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/suffix-utils.jsm +0 -21
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/test-prefix.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/test-suffix.js +0 -3
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/array-set.js +0 -97
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/base64-vlq.js +0 -144
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/base64.js +0 -42
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/binary-search.js +0 -81
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -477
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/source-map-generator.js +0 -380
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/source-node.js +0 -371
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/util.js +0 -205
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/LICENSE +0 -58
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/README.md +0 -171
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/amdefine.js +0 -299
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/intercept.js +0 -36
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/package.json +0 -36
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/package.json +0 -110
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/run-tests.js +0 -71
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-api.js +0 -26
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-array-set.js +0 -104
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-base64-vlq.js +0 -24
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-base64.js +0 -35
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-binary-search.js +0 -54
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-dog-fooding.js +0 -72
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-map-consumer.js +0 -451
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-map-generator.js +0 -417
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-node.js +0 -365
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/util.js +0 -161
- data/vendor/node_modules/istanbul/node_modules/escodegen/package.json +0 -58
- data/vendor/node_modules/istanbul/node_modules/esprima/README.md +0 -73
- data/vendor/node_modules/istanbul/node_modules/esprima/bin/esparse.js +0 -117
- data/vendor/node_modules/istanbul/node_modules/esprima/bin/esvalidate.js +0 -177
- data/vendor/node_modules/istanbul/node_modules/esprima/esprima.js +0 -3908
- data/vendor/node_modules/istanbul/node_modules/esprima/package.json +0 -59
- data/vendor/node_modules/istanbul/node_modules/esprima/test/compat.js +0 -239
- data/vendor/node_modules/istanbul/node_modules/esprima/test/reflect.js +0 -422
- data/vendor/node_modules/istanbul/node_modules/esprima/test/run.js +0 -66
- data/vendor/node_modules/istanbul/node_modules/esprima/test/runner.js +0 -387
- data/vendor/node_modules/istanbul/node_modules/esprima/test/test.js +0 -20238
- data/vendor/node_modules/istanbul/node_modules/fileset/LICENSE-MIT +0 -22
- data/vendor/node_modules/istanbul/node_modules/fileset/README.md +0 -87
- data/vendor/node_modules/istanbul/node_modules/fileset/lib/fileset.js +0 -64
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/LICENSE +0 -27
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/README.md +0 -250
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/examples/g.js +0 -9
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/examples/usr-local.js +0 -9
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/glob.js +0 -680
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/LICENSE +0 -16
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/README.md +0 -42
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/inherits.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/inherits_browser.js +0 -23
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/package.json +0 -33
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/test.js +0 -25
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/package.json +0 -39
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/00-setup.js +0 -176
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/bash-comparison.js +0 -63
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/bash-results.json +0 -350
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/cwd-test.js +0 -55
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/globstar-match.js +0 -19
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/mark.js +0 -74
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/new-glob-optional-options.js +0 -10
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/nocase-nomagic.js +0 -113
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/pause-resume.js +0 -73
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/root-nomount.js +0 -39
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/root.js +0 -46
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/stat.js +0 -32
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/zz-cleanup.js +0 -11
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/LICENSE +0 -23
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/README.md +0 -218
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/minimatch.js +0 -1055
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/CONTRIBUTORS +0 -14
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/LICENSE +0 -23
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/README.md +0 -97
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/lib/lru-cache.js +0 -252
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/package.json +0 -33
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/test/basic.js +0 -369
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/test/foreach.js +0 -52
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/test/memory-leak.js +0 -50
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/LICENSE +0 -27
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/README.md +0 -53
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/bench.js +0 -283
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/package.json +0 -42
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/sigmund.js +0 -39
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/test/basic.js +0 -24
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/package.json +0 -40
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/basic.js +0 -399
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/brace-expand.js +0 -33
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/caching.js +0 -14
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/defaults.js +0 -274
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/extglob-ending-with-state-char.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/fileset/package.json +0 -34
- data/vendor/node_modules/istanbul/node_modules/fileset/tests/fixtures/an (odd) filename.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/fileset/tests/helper.js +0 -61
- data/vendor/node_modules/istanbul/node_modules/fileset/tests/test.js +0 -133
- data/vendor/node_modules/istanbul/node_modules/handlebars/LICENSE +0 -19
- data/vendor/node_modules/istanbul/node_modules/handlebars/README.markdown +0 -391
- data/vendor/node_modules/istanbul/node_modules/handlebars/bin/handlebars +0 -213
- data/vendor/node_modules/istanbul/node_modules/handlebars/bower.json +0 -9
- data/vendor/node_modules/istanbul/node_modules/handlebars/dist/handlebars.js +0 -2278
- data/vendor/node_modules/istanbul/node_modules/handlebars/dist/handlebars.min.js +0 -2
- data/vendor/node_modules/istanbul/node_modules/handlebars/dist/handlebars.runtime.js +0 -362
- data/vendor/node_modules/istanbul/node_modules/handlebars/dist/handlebars.runtime.min.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/handlebars/global-test.js +0 -18
- data/vendor/node_modules/istanbul/node_modules/handlebars/global.js +0 -4
- data/vendor/node_modules/istanbul/node_modules/handlebars/handlebars-source.gemspec +0 -21
- data/vendor/node_modules/istanbul/node_modules/handlebars/handlebars.js.nuspec +0 -17
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars.js +0 -43
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/base.js +0 -166
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/browser-prefix.js +0 -3
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/browser-suffix.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/ast.js +0 -138
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/base.js +0 -21
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/compiler.js +0 -1305
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/index.js +0 -16
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/parser.js +0 -483
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/printer.js +0 -138
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/visitor.js +0 -18
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/runtime.js +0 -106
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/source.rb +0 -11
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/utils.js +0 -83
- data/vendor/node_modules/istanbul/node_modules/handlebars/min.sh +0 -11
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/LICENSE +0 -21
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/bool.js +0 -10
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/boolean_double.js +0 -7
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/boolean_single.js +0 -7
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/default_hash.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/default_singles.js +0 -7
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/divide.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/line_count.js +0 -20
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/line_count_options.js +0 -29
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/line_count_wrap.js +0 -29
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/nonopt.js +0 -4
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/reflect.js +0 -2
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/short.js +0 -3
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/string.js +0 -11
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/usage-options.js +0 -19
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/xup.js +0 -10
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/index.js +0 -478
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/package.json +0 -46
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/readme.markdown +0 -487
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/_.js +0 -71
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/_/argv.js +0 -2
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/_/bin.js +0 -3
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/parse.js +0 -446
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/usage.js +0 -292
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/LICENSE +0 -29
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/README.md +0 -588
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/bin/uglifyjs +0 -402
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/ast.js +0 -985
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/compress.js +0 -2028
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/mozilla-ast.js +0 -267
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/output.js +0 -1229
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/parse.js +0 -1410
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/scope.js +0 -581
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/sourcemap.js +0 -81
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/transform.js +0 -217
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/utils.js +0 -295
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/CHANGELOG.md +0 -112
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/LICENSE +0 -28
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/Makefile.dryice.js +0 -166
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/README.md +0 -434
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/assert-shim.js +0 -56
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/mini-require.js +0 -152
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/prefix-source-map.jsm +0 -20
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/prefix-utils.jsm +0 -18
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/suffix-browser.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/suffix-source-map.jsm +0 -6
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/suffix-utils.jsm +0 -21
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/test-prefix.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/test-suffix.js +0 -3
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/array-set.js +0 -97
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64-vlq.js +0 -144
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64.js +0 -42
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/binary-search.js +0 -81
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -477
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-map-generator.js +0 -380
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-node.js +0 -371
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/util.js +0 -205
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/LICENSE +0 -58
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/README.md +0 -171
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/amdefine.js +0 -299
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/intercept.js +0 -36
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/package.json +0 -37
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/package.json +0 -110
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/run-tests.js +0 -71
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-api.js +0 -26
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-array-set.js +0 -104
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64-vlq.js +0 -24
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64.js +0 -35
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-binary-search.js +0 -54
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-dog-fooding.js +0 -72
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-map-consumer.js +0 -451
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-map-generator.js +0 -417
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-node.js +0 -365
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/util.js +0 -161
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/package.json +0 -39
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/arrays.js +0 -12
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/blocks.js +0 -49
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/conditionals.js +0 -143
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/dead-code.js +0 -89
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/debugger.js +0 -24
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js +0 -97
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-105.js +0 -25
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-12.js +0 -11
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-143.js +0 -48
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-22.js +0 -17
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-44.js +0 -31
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-59.js +0 -30
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/labels.js +0 -163
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/loops.js +0 -123
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/properties.js +0 -54
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/sequences.js +0 -161
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/switch.js +0 -260
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/typeof.js +0 -25
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/run-tests.js +0 -170
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/tools/node.js +0 -165
- data/vendor/node_modules/istanbul/node_modules/handlebars/package.json +0 -42
- data/vendor/node_modules/istanbul/node_modules/handlebars/release-notes.md +0 -93
- data/vendor/node_modules/istanbul/node_modules/handlebars/test.js +0 -20
- data/vendor/node_modules/istanbul/node_modules/mkdirp/LICENSE +0 -21
- data/vendor/node_modules/istanbul/node_modules/mkdirp/examples/pow.js +0 -6
- data/vendor/node_modules/istanbul/node_modules/mkdirp/index.js +0 -82
- data/vendor/node_modules/istanbul/node_modules/mkdirp/package.json +0 -34
- data/vendor/node_modules/istanbul/node_modules/mkdirp/readme.markdown +0 -63
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/chmod.js +0 -38
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/clobber.js +0 -37
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/mkdirp.js +0 -28
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/perm.js +0 -32
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/perm_sync.js +0 -39
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/race.js +0 -41
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/rel.js +0 -32
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/return.js +0 -25
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/return_sync.js +0 -24
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/root.js +0 -18
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/sync.js +0 -32
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/umask.js +0 -28
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/umask_sync.js +0 -32
- data/vendor/node_modules/istanbul/node_modules/nopt/LICENSE +0 -23
- data/vendor/node_modules/istanbul/node_modules/nopt/README.md +0 -210
- data/vendor/node_modules/istanbul/node_modules/nopt/bin/nopt.js +0 -51
- data/vendor/node_modules/istanbul/node_modules/nopt/examples/my-program.js +0 -30
- data/vendor/node_modules/istanbul/node_modules/nopt/lib/nopt.js +0 -612
- data/vendor/node_modules/istanbul/node_modules/nopt/package.json +0 -36
- data/vendor/node_modules/istanbul/node_modules/resolve/LICENSE +0 -18
- data/vendor/node_modules/istanbul/node_modules/resolve/example/async.js +0 -5
- data/vendor/node_modules/istanbul/node_modules/resolve/example/sync.js +0 -3
- data/vendor/node_modules/istanbul/node_modules/resolve/index.js +0 -5
- data/vendor/node_modules/istanbul/node_modules/resolve/lib/async.js +0 -125
- data/vendor/node_modules/istanbul/node_modules/resolve/lib/caller.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/resolve/lib/core.js +0 -4
- data/vendor/node_modules/istanbul/node_modules/resolve/lib/core.json +0 -38
- data/vendor/node_modules/istanbul/node_modules/resolve/lib/node-modules-paths.js +0 -25
- data/vendor/node_modules/istanbul/node_modules/resolve/lib/sync.js +0 -80
- data/vendor/node_modules/istanbul/node_modules/resolve/package.json +0 -36
- data/vendor/node_modules/istanbul/node_modules/resolve/readme.markdown +0 -144
- data/vendor/node_modules/istanbul/node_modules/resolve/test/core.js +0 -12
- data/vendor/node_modules/istanbul/node_modules/resolve/test/filter.js +0 -18
- data/vendor/node_modules/istanbul/node_modules/resolve/test/filter_sync.js +0 -15
- data/vendor/node_modules/istanbul/node_modules/resolve/test/mock.js +0 -142
- data/vendor/node_modules/istanbul/node_modules/resolve/test/mock_sync.js +0 -68
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver.js +0 -270
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/bar/node_modules/foo/index.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/baz/package.json +0 -3
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/baz/quux.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/biz/node_modules/garply/lib/index.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/biz/node_modules/garply/package.json +0 -3
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/biz/node_modules/grux/index.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/biz/node_modules/tiv/index.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/cup.coffee +0 -1
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/foo.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/incorrect_main/index.js +0 -2
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/incorrect_main/package.json +0 -3
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/mug.coffee +0 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/mug.js +0 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/quux/foo/index.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/without_basedir/main.js +0 -6
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/without_basedir/node_modules/mymodule.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver_sync.js +0 -170
- data/vendor/node_modules/istanbul/node_modules/which/LICENSE +0 -23
- data/vendor/node_modules/istanbul/node_modules/which/README.md +0 -5
- data/vendor/node_modules/istanbul/node_modules/which/bin/which +0 -14
- data/vendor/node_modules/istanbul/node_modules/which/package.json +0 -32
- data/vendor/node_modules/istanbul/node_modules/which/which.js +0 -104
- data/vendor/node_modules/istanbul/node_modules/wordwrap/README.markdown +0 -70
- data/vendor/node_modules/istanbul/node_modules/wordwrap/example/center.js +0 -10
- data/vendor/node_modules/istanbul/node_modules/wordwrap/example/meat.js +0 -3
- data/vendor/node_modules/istanbul/node_modules/wordwrap/index.js +0 -76
- data/vendor/node_modules/istanbul/node_modules/wordwrap/package.json +0 -45
- data/vendor/node_modules/istanbul/node_modules/wordwrap/test/break.js +0 -30
- data/vendor/node_modules/istanbul/node_modules/wordwrap/test/idleness.txt +0 -63
- data/vendor/node_modules/istanbul/node_modules/wordwrap/test/wrap.js +0 -31
- data/vendor/node_modules/istanbul/package.json +0 -117
- data/vendor/node_modules/istanbul/test/browser/support/index.html +0 -153
- data/vendor/node_modules/istanbul/test/browser/support/phantom-test.client.js +0 -49
- data/vendor/node_modules/istanbul/test/browser/support/server.js +0 -154
- data/vendor/node_modules/istanbul/test/browser/test-browser-instrumentation.js +0 -94
- data/vendor/node_modules/istanbul/test/cli-helper.js +0 -219
- data/vendor/node_modules/istanbul/test/cli/package.json +0 -8
- data/vendor/node_modules/istanbul/test/cli/sample-project/amd/ipsum.js +0 -11
- data/vendor/node_modules/istanbul/test/cli/sample-project/amd/lorem.js +0 -7
- data/vendor/node_modules/istanbul/test/cli/sample-project/lib/bar.js +0 -13
- data/vendor/node_modules/istanbul/test/cli/sample-project/lib/foo.js +0 -12
- data/vendor/node_modules/istanbul/test/cli/sample-project/lib/util/bad.js +0 -1
- data/vendor/node_modules/istanbul/test/cli/sample-project/lib/util/generate-names.js +0 -5
- data/vendor/node_modules/istanbul/test/cli/sample-project/node_modules/dependency/index.js +0 -9
- data/vendor/node_modules/istanbul/test/cli/sample-project/node_modules/post-require/hook.js +0 -11
- data/vendor/node_modules/istanbul/test/cli/sample-project/node_modules/post-require/package.json +0 -5
- data/vendor/node_modules/istanbul/test/cli/sample-project/test/amd-run.js +0 -16
- data/vendor/node_modules/istanbul/test/cli/sample-project/test/global-leak.js +0 -30
- data/vendor/node_modules/istanbul/test/cli/sample-project/test/run.js +0 -25
- data/vendor/node_modules/istanbul/test/cli/sample-project/vendor/dummy_vendor_lib.js +0 -9
- data/vendor/node_modules/istanbul/test/cli/test-base-cli.js +0 -39
- data/vendor/node_modules/istanbul/test/cli/test-check-coverage-command.js +0 -97
- data/vendor/node_modules/istanbul/test/cli/test-cobertura-report.js +0 -54
- data/vendor/node_modules/istanbul/test/cli/test-cover-command.js +0 -170
- data/vendor/node_modules/istanbul/test/cli/test-html-report.js +0 -125
- data/vendor/node_modules/istanbul/test/cli/test-instrument-command.js +0 -167
- data/vendor/node_modules/istanbul/test/cli/test-json-report.js +0 -60
- data/vendor/node_modules/istanbul/test/cli/test-lcov-report.js +0 -58
- data/vendor/node_modules/istanbul/test/cli/test-lcovonly-report.js +0 -61
- data/vendor/node_modules/istanbul/test/cli/test-lots-of-files.js +0 -87
- data/vendor/node_modules/istanbul/test/cli/test-none-report.js +0 -17
- data/vendor/node_modules/istanbul/test/cli/test-report-command.js +0 -65
- data/vendor/node_modules/istanbul/test/cli/test-teamcity-report.js +0 -54
- data/vendor/node_modules/istanbul/test/cli/test-test-command.js +0 -43
- data/vendor/node_modules/istanbul/test/common.js +0 -19
- data/vendor/node_modules/istanbul/test/helper.js +0 -122
- data/vendor/node_modules/istanbul/test/instrumentation/test-do.js +0 -53
- data/vendor/node_modules/istanbul/test/instrumentation/test-expressions.js +0 -70
- data/vendor/node_modules/istanbul/test/instrumentation/test-for.js +0 -206
- data/vendor/node_modules/istanbul/test/instrumentation/test-forin.js +0 -50
- data/vendor/node_modules/istanbul/test/instrumentation/test-functions.js +0 -102
- data/vendor/node_modules/istanbul/test/instrumentation/test-if.js +0 -393
- data/vendor/node_modules/istanbul/test/instrumentation/test-misc.js +0 -35
- data/vendor/node_modules/istanbul/test/instrumentation/test-statement.js +0 -182
- data/vendor/node_modules/istanbul/test/instrumentation/test-strict.js +0 -121
- data/vendor/node_modules/istanbul/test/instrumentation/test-switch.js +0 -155
- data/vendor/node_modules/istanbul/test/instrumentation/test-while.js +0 -104
- data/vendor/node_modules/istanbul/test/loader.js +0 -38
- data/vendor/node_modules/istanbul/test/other/data-complete-copy/baz.js +0 -3
- data/vendor/node_modules/istanbul/test/other/data-complete-copy/fixture.xml +0 -1
- data/vendor/node_modules/istanbul/test/other/data-complete-copy/foo.js +0 -4
- data/vendor/node_modules/istanbul/test/other/data-complete-copy/myfile1 +0 -0
- data/vendor/node_modules/istanbul/test/other/data-complete-copy/myfile2 +0 -1
- data/vendor/node_modules/istanbul/test/other/data-complete-copy/subdir/x.css +0 -3
- data/vendor/node_modules/istanbul/test/other/data/baz.js +0 -3
- data/vendor/node_modules/istanbul/test/other/data/foo.js +0 -4
- data/vendor/node_modules/istanbul/test/other/data/matcher/general/general.js +0 -2
- data/vendor/node_modules/istanbul/test/other/data/matcher/general/node_modules/mod-file.js +0 -2
- data/vendor/node_modules/istanbul/test/other/data/matcher/lib/lib-top.js +0 -2
- data/vendor/node_modules/istanbul/test/other/data/matcher/node_modules/dep/mod-file.js +0 -2
- data/vendor/node_modules/istanbul/test/other/data/matcher/node_modules/mod-file.js +0 -2
- data/vendor/node_modules/istanbul/test/other/data/matcher/top.js +0 -2
- data/vendor/node_modules/istanbul/test/other/test-collector.js +0 -85
- data/vendor/node_modules/istanbul/test/other/test-command-xface.js +0 -35
- data/vendor/node_modules/istanbul/test/other/test-file-writer.js +0 -71
- data/vendor/node_modules/istanbul/test/other/test-help-formatter.js +0 -31
- data/vendor/node_modules/istanbul/test/other/test-hook.js +0 -87
- data/vendor/node_modules/istanbul/test/other/test-index-xface.js +0 -17
- data/vendor/node_modules/istanbul/test/other/test-input-error.js +0 -10
- data/vendor/node_modules/istanbul/test/other/test-insertion-text.js +0 -102
- data/vendor/node_modules/istanbul/test/other/test-matcher.js +0 -93
- data/vendor/node_modules/istanbul/test/other/test-object-utils.js +0 -201
- data/vendor/node_modules/istanbul/test/other/test-store.js +0 -129
- data/vendor/node_modules/istanbul/test/other/test-summarizer.js +0 -172
- data/vendor/node_modules/istanbul/test/run-again.js +0 -19
- data/vendor/node_modules/istanbul/test/run.js +0 -108
- data/vendor/node_modules/istanbul/yui-coverage-comparison.md +0 -85
- data/vendor/node_modules/qunit-clib/LICENSE.txt +0 -20
- data/vendor/node_modules/qunit-clib/README.md +0 -2
- data/vendor/node_modules/qunit-clib/package.json +0 -36
- data/vendor/node_modules/qunit-clib/qunit-clib.js +0 -570
- data/vendor/node_modules/qunitjs/AUTHORS.txt +0 -55
- data/vendor/node_modules/qunitjs/History.md +0 -496
- data/vendor/node_modules/qunitjs/README.md +0 -62
- data/vendor/node_modules/qunitjs/addons/canvas/README.md +0 -17
- data/vendor/node_modules/qunitjs/addons/canvas/canvas-test.js +0 -76
- data/vendor/node_modules/qunitjs/addons/canvas/canvas.html +0 -15
- data/vendor/node_modules/qunitjs/addons/canvas/qunit-canvas.js +0 -6
- data/vendor/node_modules/qunitjs/addons/close-enough/README.md +0 -18
- data/vendor/node_modules/qunitjs/addons/close-enough/close-enough-test.js +0 -35
- data/vendor/node_modules/qunitjs/addons/close-enough/close-enough.html +0 -14
- data/vendor/node_modules/qunitjs/addons/close-enough/qunit-close-enough.js +0 -32
- data/vendor/node_modules/qunitjs/addons/composite/README.md +0 -26
- data/vendor/node_modules/qunitjs/addons/composite/composite-demo-test.html +0 -24
- data/vendor/node_modules/qunitjs/addons/composite/index.html +0 -34
- data/vendor/node_modules/qunitjs/addons/composite/qunit-composite.css +0 -13
- data/vendor/node_modules/qunitjs/addons/composite/qunit-composite.js +0 -112
- data/vendor/node_modules/qunitjs/addons/junitlogger/README.md +0 -18
- data/vendor/node_modules/qunitjs/addons/junitlogger/index.html +0 -44
- data/vendor/node_modules/qunitjs/addons/junitlogger/junitlogger.js +0 -306
- data/vendor/node_modules/qunitjs/addons/phantomjs/README.md +0 -16
- data/vendor/node_modules/qunitjs/addons/phantomjs/runner.js +0 -127
- data/vendor/node_modules/qunitjs/addons/step/README.md +0 -20
- data/vendor/node_modules/qunitjs/addons/step/qunit-step.js +0 -26
- data/vendor/node_modules/qunitjs/addons/step/step-test.js +0 -15
- data/vendor/node_modules/qunitjs/addons/step/step.html +0 -14
- data/vendor/node_modules/qunitjs/addons/themes/README.md +0 -6
- data/vendor/node_modules/qunitjs/addons/themes/gabe.css +0 -371
- data/vendor/node_modules/qunitjs/addons/themes/gabe.html +0 -15
- data/vendor/node_modules/qunitjs/addons/themes/ninja.css +0 -196
- data/vendor/node_modules/qunitjs/addons/themes/ninja.html +0 -15
- data/vendor/node_modules/qunitjs/addons/themes/nv.css +0 -217
- data/vendor/node_modules/qunitjs/addons/themes/nv.html +0 -15
- data/vendor/node_modules/qunitjs/grunt.js +0 -101
- data/vendor/node_modules/qunitjs/package.json +0 -49
- data/vendor/node_modules/qunitjs/qunit/qunit.css +0 -244
- data/vendor/node_modules/qunitjs/qunit/qunit.js +0 -2152
- data/vendor/node_modules/qunitjs/test/async.html +0 -26
- data/vendor/node_modules/qunitjs/test/async.js +0 -6
- data/vendor/node_modules/qunitjs/test/deepEqual.js +0 -1438
- data/vendor/node_modules/qunitjs/test/headless.html +0 -28
- data/vendor/node_modules/qunitjs/test/index.html +0 -16
- data/vendor/node_modules/qunitjs/test/logs.html +0 -14
- data/vendor/node_modules/qunitjs/test/logs.js +0 -184
- data/vendor/node_modules/qunitjs/test/narwhal-test.js +0 -22
- data/vendor/node_modules/qunitjs/test/node-test.js +0 -22
- data/vendor/node_modules/qunitjs/test/swarminject.js +0 -10
- data/vendor/node_modules/qunitjs/test/test.js +0 -804
- data/vendor/node_modules/regenerate/LICENSE-MIT.txt +0 -20
- data/vendor/node_modules/regenerate/README.md +0 -467
- data/vendor/node_modules/regenerate/package.json +0 -50
- data/vendor/node_modules/regenerate/regenerate.js +0 -617
- data/vendor/node_modules/requirejs/README.md +0 -9
- data/vendor/node_modules/requirejs/bin/r.js +0 -26059
- data/vendor/node_modules/requirejs/package.json +0 -39
- data/vendor/node_modules/requirejs/require.js +0 -2054
@@ -1,259 +0,0 @@
|
|
1
|
-
$(document).ready(function() {
|
2
|
-
|
3
|
-
module("Functions");
|
4
|
-
|
5
|
-
test("bind", function() {
|
6
|
-
var context = {name : 'moe'};
|
7
|
-
var func = function(arg) { return "name: " + (this.name || arg); };
|
8
|
-
var bound = _.bind(func, context);
|
9
|
-
equal(bound(), 'name: moe', 'can bind a function to a context');
|
10
|
-
|
11
|
-
bound = _(func).bind(context);
|
12
|
-
equal(bound(), 'name: moe', 'can do OO-style binding');
|
13
|
-
|
14
|
-
bound = _.bind(func, null, 'curly');
|
15
|
-
equal(bound(), 'name: curly', 'can bind without specifying a context');
|
16
|
-
|
17
|
-
func = function(salutation, name) { return salutation + ': ' + name; };
|
18
|
-
func = _.bind(func, this, 'hello');
|
19
|
-
equal(func('moe'), 'hello: moe', 'the function was partially applied in advance');
|
20
|
-
|
21
|
-
var func = _.bind(func, this, 'curly');
|
22
|
-
equal(func(), 'hello: curly', 'the function was completely applied in advance');
|
23
|
-
|
24
|
-
var func = function(salutation, firstname, lastname) { return salutation + ': ' + firstname + ' ' + lastname; };
|
25
|
-
func = _.bind(func, this, 'hello', 'moe', 'curly');
|
26
|
-
equal(func(), 'hello: moe curly', 'the function was partially applied in advance and can accept multiple arguments');
|
27
|
-
|
28
|
-
func = function(context, message) { equal(this, context, message); };
|
29
|
-
_.bind(func, 0, 0, 'can bind a function to `0`')();
|
30
|
-
_.bind(func, '', '', 'can bind a function to an empty string')();
|
31
|
-
_.bind(func, false, false, 'can bind a function to `false`')();
|
32
|
-
|
33
|
-
// These tests are only meaningful when using a browser without a native bind function
|
34
|
-
// To test this with a modern browser, set underscore's nativeBind to undefined
|
35
|
-
var F = function () { return this; };
|
36
|
-
var Boundf = _.bind(F, {hello: "moe curly"});
|
37
|
-
equal(new Boundf().hello, undefined, "function should not be bound to the context, to comply with ECMAScript 5");
|
38
|
-
equal(Boundf().hello, "moe curly", "When called without the new operator, it's OK to be bound to the context");
|
39
|
-
});
|
40
|
-
|
41
|
-
test("bindAll", function() {
|
42
|
-
var curly = {name : 'curly'}, moe = {
|
43
|
-
name : 'moe',
|
44
|
-
getName : function() { return 'name: ' + this.name; },
|
45
|
-
sayHi : function() { return 'hi: ' + this.name; }
|
46
|
-
};
|
47
|
-
curly.getName = moe.getName;
|
48
|
-
_.bindAll(moe, 'getName', 'sayHi');
|
49
|
-
curly.sayHi = moe.sayHi;
|
50
|
-
equal(curly.getName(), 'name: curly', 'unbound function is bound to current object');
|
51
|
-
equal(curly.sayHi(), 'hi: moe', 'bound function is still bound to original object');
|
52
|
-
|
53
|
-
curly = {name : 'curly'};
|
54
|
-
moe = {
|
55
|
-
name : 'moe',
|
56
|
-
getName : function() { return 'name: ' + this.name; },
|
57
|
-
sayHi : function() { return 'hi: ' + this.name; }
|
58
|
-
};
|
59
|
-
_.bindAll(moe);
|
60
|
-
curly.sayHi = moe.sayHi;
|
61
|
-
equal(curly.sayHi(), 'hi: moe', 'calling bindAll with no arguments binds all functions to the object');
|
62
|
-
});
|
63
|
-
|
64
|
-
test("memoize", function() {
|
65
|
-
var fib = function(n) {
|
66
|
-
return n < 2 ? n : fib(n - 1) + fib(n - 2);
|
67
|
-
};
|
68
|
-
var fastFib = _.memoize(fib);
|
69
|
-
equal(fib(10), 55, 'a memoized version of fibonacci produces identical results');
|
70
|
-
equal(fastFib(10), 55, 'a memoized version of fibonacci produces identical results');
|
71
|
-
|
72
|
-
var o = function(str) {
|
73
|
-
return str;
|
74
|
-
};
|
75
|
-
var fastO = _.memoize(o);
|
76
|
-
equal(o('toString'), 'toString', 'checks hasOwnProperty');
|
77
|
-
equal(fastO('toString'), 'toString', 'checks hasOwnProperty');
|
78
|
-
});
|
79
|
-
|
80
|
-
asyncTest("delay", 2, function() {
|
81
|
-
var delayed = false;
|
82
|
-
_.delay(function(){ delayed = true; }, 100);
|
83
|
-
setTimeout(function(){ ok(!delayed, "didn't delay the function quite yet"); }, 50);
|
84
|
-
setTimeout(function(){ ok(delayed, 'delayed the function'); start(); }, 150);
|
85
|
-
});
|
86
|
-
|
87
|
-
asyncTest("defer", 1, function() {
|
88
|
-
var deferred = false;
|
89
|
-
_.defer(function(bool){ deferred = bool; }, true);
|
90
|
-
_.delay(function(){ ok(deferred, "deferred the function"); start(); }, 50);
|
91
|
-
});
|
92
|
-
|
93
|
-
asyncTest("throttle", 2, function() {
|
94
|
-
var counter = 0;
|
95
|
-
var incr = function(){ counter++; };
|
96
|
-
var throttledIncr = _.throttle(incr, 100);
|
97
|
-
throttledIncr(); throttledIncr(); throttledIncr();
|
98
|
-
setTimeout(throttledIncr, 70);
|
99
|
-
setTimeout(throttledIncr, 120);
|
100
|
-
setTimeout(throttledIncr, 140);
|
101
|
-
setTimeout(throttledIncr, 190);
|
102
|
-
setTimeout(throttledIncr, 220);
|
103
|
-
setTimeout(throttledIncr, 240);
|
104
|
-
_.delay(function(){ equal(counter, 1, "incr was called immediately"); }, 30);
|
105
|
-
_.delay(function(){ equal(counter, 4, "incr was throttled"); start(); }, 400);
|
106
|
-
});
|
107
|
-
|
108
|
-
asyncTest("throttle arguments", 2, function() {
|
109
|
-
var value = 0;
|
110
|
-
var update = function(val){ value = val; };
|
111
|
-
var throttledUpdate = _.throttle(update, 100);
|
112
|
-
throttledUpdate(1); throttledUpdate(2); throttledUpdate(3);
|
113
|
-
setTimeout(function(){ throttledUpdate(4); }, 120);
|
114
|
-
setTimeout(function(){ throttledUpdate(5); }, 140);
|
115
|
-
setTimeout(function(){ throttledUpdate(6); }, 250);
|
116
|
-
_.delay(function(){ equal(value, 1, "updated to latest value"); }, 40);
|
117
|
-
_.delay(function(){ equal(value, 6, "updated to latest value"); start(); }, 400);
|
118
|
-
});
|
119
|
-
|
120
|
-
asyncTest("throttle once", 2, function() {
|
121
|
-
var counter = 0;
|
122
|
-
var incr = function(){ return ++counter; };
|
123
|
-
var throttledIncr = _.throttle(incr, 100);
|
124
|
-
var result = throttledIncr();
|
125
|
-
_.delay(function(){
|
126
|
-
equal(result, 1, "throttled functions return their value");
|
127
|
-
equal(counter, 1, "incr was called once"); start();
|
128
|
-
}, 220);
|
129
|
-
});
|
130
|
-
|
131
|
-
asyncTest("throttle twice", 1, function() {
|
132
|
-
var counter = 0;
|
133
|
-
var incr = function(){ counter++; };
|
134
|
-
var throttledIncr = _.throttle(incr, 100);
|
135
|
-
throttledIncr(); throttledIncr();
|
136
|
-
_.delay(function(){ equal(counter, 2, "incr was called twice"); start(); }, 220);
|
137
|
-
});
|
138
|
-
|
139
|
-
asyncTest("throttle repeatedly with results", 9, function() {
|
140
|
-
var counter = 0;
|
141
|
-
var incr = function(){ return ++counter; };
|
142
|
-
var throttledIncr = _.throttle(incr, 100);
|
143
|
-
var results = [];
|
144
|
-
var saveResult = function() { results.push(throttledIncr()); };
|
145
|
-
saveResult(); saveResult(); saveResult();
|
146
|
-
setTimeout(saveResult, 70);
|
147
|
-
setTimeout(saveResult, 120);
|
148
|
-
setTimeout(saveResult, 140);
|
149
|
-
setTimeout(saveResult, 190);
|
150
|
-
setTimeout(saveResult, 240);
|
151
|
-
setTimeout(saveResult, 260);
|
152
|
-
_.delay(function() {
|
153
|
-
equal(results[0], 1, "incr was called once");
|
154
|
-
equal(results[1], 1, "incr was throttled");
|
155
|
-
equal(results[2], 1, "incr was throttled");
|
156
|
-
equal(results[3], 1, "incr was throttled");
|
157
|
-
equal(results[4], 2, "incr was called twice");
|
158
|
-
equal(results[5], 2, "incr was throttled");
|
159
|
-
equal(results[6], 2, "incr was throttled");
|
160
|
-
equal(results[7], 3, "incr was called thrice");
|
161
|
-
equal(results[8], 3, "incr was throttled");
|
162
|
-
start();
|
163
|
-
}, 400);
|
164
|
-
});
|
165
|
-
|
166
|
-
asyncTest("debounce", 1, function() {
|
167
|
-
var counter = 0;
|
168
|
-
var incr = function(){ counter++; };
|
169
|
-
var debouncedIncr = _.debounce(incr, 50);
|
170
|
-
debouncedIncr(); debouncedIncr(); debouncedIncr();
|
171
|
-
setTimeout(debouncedIncr, 30);
|
172
|
-
setTimeout(debouncedIncr, 60);
|
173
|
-
setTimeout(debouncedIncr, 90);
|
174
|
-
setTimeout(debouncedIncr, 120);
|
175
|
-
setTimeout(debouncedIncr, 150);
|
176
|
-
_.delay(function(){ equal(counter, 1, "incr was debounced"); start(); }, 220);
|
177
|
-
});
|
178
|
-
|
179
|
-
asyncTest("debounce asap", 5, function() {
|
180
|
-
var a, b, c;
|
181
|
-
var counter = 0;
|
182
|
-
var incr = function(){ return ++counter; };
|
183
|
-
var debouncedIncr = _.debounce(incr, 50, true);
|
184
|
-
a = debouncedIncr();
|
185
|
-
b = debouncedIncr();
|
186
|
-
c = debouncedIncr();
|
187
|
-
equal(a, 1);
|
188
|
-
equal(b, 1);
|
189
|
-
equal(c, 1);
|
190
|
-
equal(counter, 1, 'incr was called immediately');
|
191
|
-
setTimeout(debouncedIncr, 30);
|
192
|
-
setTimeout(debouncedIncr, 60);
|
193
|
-
setTimeout(debouncedIncr, 90);
|
194
|
-
setTimeout(debouncedIncr, 120);
|
195
|
-
setTimeout(debouncedIncr, 150);
|
196
|
-
_.delay(function(){ equal(counter, 1, "incr was debounced"); start(); }, 220);
|
197
|
-
});
|
198
|
-
|
199
|
-
asyncTest("debounce asap recursively", 2, function() {
|
200
|
-
var counter = 0;
|
201
|
-
var debouncedIncr = _.debounce(function(){
|
202
|
-
counter++;
|
203
|
-
if (counter < 5) debouncedIncr();
|
204
|
-
}, 50, true);
|
205
|
-
debouncedIncr();
|
206
|
-
equal(counter, 1, 'incr was called immediately');
|
207
|
-
_.delay(function(){ equal(counter, 1, "incr was debounced"); start(); }, 70);
|
208
|
-
});
|
209
|
-
|
210
|
-
test("once", function() {
|
211
|
-
var num = 0;
|
212
|
-
var increment = _.once(function(){ num++; });
|
213
|
-
increment();
|
214
|
-
increment();
|
215
|
-
equal(num, 1);
|
216
|
-
});
|
217
|
-
|
218
|
-
test("wrap", function() {
|
219
|
-
var greet = function(name){ return "hi: " + name; };
|
220
|
-
var backwards = _.wrap(greet, function(func, name){ return func(name) + ' ' + name.split('').reverse().join(''); });
|
221
|
-
equal(backwards('moe'), 'hi: moe eom', 'wrapped the saluation function');
|
222
|
-
|
223
|
-
var inner = function(){ return "Hello "; };
|
224
|
-
var obj = {name : "Moe"};
|
225
|
-
obj.hi = _.wrap(inner, function(fn){ return fn() + this.name; });
|
226
|
-
equal(obj.hi(), "Hello Moe");
|
227
|
-
|
228
|
-
var noop = function(){};
|
229
|
-
var wrapped = _.wrap(noop, function(fn){ return Array.prototype.slice.call(arguments, 0); });
|
230
|
-
var ret = wrapped(['whats', 'your'], 'vector', 'victor');
|
231
|
-
deepEqual(ret, [noop, ['whats', 'your'], 'vector', 'victor']);
|
232
|
-
});
|
233
|
-
|
234
|
-
test("compose", function() {
|
235
|
-
var greet = function(name){ return "hi: " + name; };
|
236
|
-
var exclaim = function(sentence){ return sentence + '!'; };
|
237
|
-
var composed = _.compose(exclaim, greet);
|
238
|
-
equal(composed('moe'), 'hi: moe!', 'can compose a function that takes another');
|
239
|
-
|
240
|
-
composed = _.compose(greet, exclaim);
|
241
|
-
equal(composed('moe'), 'hi: moe!', 'in this case, the functions are also commutative');
|
242
|
-
});
|
243
|
-
|
244
|
-
test("after", function() {
|
245
|
-
var testAfter = function(afterAmount, timesCalled) {
|
246
|
-
var afterCalled = 0;
|
247
|
-
var after = _.after(afterAmount, function() {
|
248
|
-
afterCalled++;
|
249
|
-
});
|
250
|
-
while (timesCalled--) after();
|
251
|
-
return afterCalled;
|
252
|
-
};
|
253
|
-
|
254
|
-
equal(testAfter(5, 5), 1, "after(N) should fire after being called N times");
|
255
|
-
equal(testAfter(5, 4), 0, "after(N) should not fire unless called N times");
|
256
|
-
equal(testAfter(0, 0), 1, "after(0) should fire immediately");
|
257
|
-
});
|
258
|
-
|
259
|
-
});
|
@@ -1,45 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Underscore Test Suite</title>
|
5
|
-
<link rel="stylesheet" href="vendor/qunit.css" type="text/css" media="screen">
|
6
|
-
<script src="vendor/jquery.js"></script>
|
7
|
-
<script src="vendor/qunit.js"></script>
|
8
|
-
<script src="vendor/jslitmus.js"></script>
|
9
|
-
<script src="../underscore.js"></script>
|
10
|
-
<script src="../../lib/underscore.string.js"></script>
|
11
|
-
|
12
|
-
<script src="collections.js"></script>
|
13
|
-
<script src="arrays.js"></script>
|
14
|
-
<script src="functions.js"></script>
|
15
|
-
<script src="objects.js"></script>
|
16
|
-
<script src="utility.js"></script>
|
17
|
-
<script src="chaining.js"></script>
|
18
|
-
<script src="speed.js"></script>
|
19
|
-
</head>
|
20
|
-
<body>
|
21
|
-
<div id="qunit"></div>
|
22
|
-
<div id="qunit-fixture">
|
23
|
-
<div id="map-test">
|
24
|
-
<div id="id1"></div>
|
25
|
-
<div id="id2"></div>
|
26
|
-
</div>
|
27
|
-
</div>
|
28
|
-
<br>
|
29
|
-
<h1 class="qunit-header">Underscore Speed Suite</h1>
|
30
|
-
<p>
|
31
|
-
A representative sample of the functions are benchmarked here, to provide
|
32
|
-
a sense of how fast they might run in different browsers.
|
33
|
-
Each iteration runs on an array of 1000 elements.<br /><br />
|
34
|
-
For example, the 'intersection' test measures the number of times you can
|
35
|
-
find the intersection of two thousand-element arrays in one second.
|
36
|
-
</p>
|
37
|
-
<br>
|
38
|
-
<script type="text/html" id="template">
|
39
|
-
<%
|
40
|
-
// a comment
|
41
|
-
if (data) { data += 12345; }; %>
|
42
|
-
<li><%= data %></li>
|
43
|
-
</script>
|
44
|
-
</body>
|
45
|
-
</html>
|
@@ -1,548 +0,0 @@
|
|
1
|
-
$(document).ready(function() {
|
2
|
-
|
3
|
-
module("Objects");
|
4
|
-
|
5
|
-
test("keys", function() {
|
6
|
-
equal(_.keys({one : 1, two : 2}).join(', '), 'one, two', 'can extract the keys from an object');
|
7
|
-
// the test above is not safe because it relies on for-in enumeration order
|
8
|
-
var a = []; a[1] = 0;
|
9
|
-
equal(_.keys(a).join(', '), '1', 'is not fooled by sparse arrays; see issue #95');
|
10
|
-
raises(function() { _.keys(null); }, TypeError, 'throws an error for `null` values');
|
11
|
-
raises(function() { _.keys(void 0); }, TypeError, 'throws an error for `undefined` values');
|
12
|
-
raises(function() { _.keys(1); }, TypeError, 'throws an error for number primitives');
|
13
|
-
raises(function() { _.keys('a'); }, TypeError, 'throws an error for string primitives');
|
14
|
-
raises(function() { _.keys(true); }, TypeError, 'throws an error for boolean primitives');
|
15
|
-
});
|
16
|
-
|
17
|
-
test("values", function() {
|
18
|
-
equal(_.values({one: 1, two: 2}).join(', '), '1, 2', 'can extract the values from an object');
|
19
|
-
equal(_.values({one: 1, two: 2, length: 3}).join(', '), '1, 2, 3', '... even when one of them is "length"');
|
20
|
-
});
|
21
|
-
|
22
|
-
test("pairs", function() {
|
23
|
-
deepEqual(_.pairs({one: 1, two: 2}), [['one', 1], ['two', 2]], 'can convert an object into pairs');
|
24
|
-
deepEqual(_.pairs({one: 1, two: 2, length: 3}), [['one', 1], ['two', 2], ['length', 3]], '... even when one of them is "length"');
|
25
|
-
});
|
26
|
-
|
27
|
-
test("invert", function() {
|
28
|
-
var obj = {first: 'Moe', second: 'Larry', third: 'Curly'};
|
29
|
-
equal(_.keys(_.invert(obj)).join(' '), 'Moe Larry Curly', 'can invert an object');
|
30
|
-
ok(_.isEqual(_.invert(_.invert(obj)), obj), 'two inverts gets you back where you started');
|
31
|
-
|
32
|
-
var obj = {length: 3};
|
33
|
-
ok(_.invert(obj)['3'] == 'length', 'can invert an object with "length"')
|
34
|
-
});
|
35
|
-
|
36
|
-
test("functions", function() {
|
37
|
-
var obj = {a : 'dash', b : _.map, c : (/yo/), d : _.reduce};
|
38
|
-
ok(_.isEqual(['b', 'd'], _.functions(obj)), 'can grab the function names of any passed-in object');
|
39
|
-
|
40
|
-
var Animal = function(){};
|
41
|
-
Animal.prototype.run = function(){};
|
42
|
-
equal(_.functions(new Animal).join(''), 'run', 'also looks up functions on the prototype');
|
43
|
-
});
|
44
|
-
|
45
|
-
test("extend", function() {
|
46
|
-
var result;
|
47
|
-
equal(_.extend({}, {a:'b'}).a, 'b', 'can extend an object with the attributes of another');
|
48
|
-
equal(_.extend({a:'x'}, {a:'b'}).a, 'b', 'properties in source override destination');
|
49
|
-
equal(_.extend({x:'x'}, {a:'b'}).x, 'x', 'properties not in source dont get overriden');
|
50
|
-
result = _.extend({x:'x'}, {a:'a'}, {b:'b'});
|
51
|
-
ok(_.isEqual(result, {x:'x', a:'a', b:'b'}), 'can extend from multiple source objects');
|
52
|
-
result = _.extend({x:'x'}, {a:'a', x:2}, {a:'b'});
|
53
|
-
ok(_.isEqual(result, {x:2, a:'b'}), 'extending from multiple source objects last property trumps');
|
54
|
-
result = _.extend({}, {a: void 0, b: null});
|
55
|
-
equal(_.keys(result).join(''), 'ab', 'extend does not copy undefined values');
|
56
|
-
});
|
57
|
-
|
58
|
-
test("pick", function() {
|
59
|
-
var result;
|
60
|
-
result = _.pick({a:1, b:2, c:3}, 'a', 'c');
|
61
|
-
ok(_.isEqual(result, {a:1, c:3}), 'can restrict properties to those named');
|
62
|
-
result = _.pick({a:1, b:2, c:3}, ['b', 'c']);
|
63
|
-
ok(_.isEqual(result, {b:2, c:3}), 'can restrict properties to those named in an array');
|
64
|
-
result = _.pick({a:1, b:2, c:3}, ['a'], 'b');
|
65
|
-
ok(_.isEqual(result, {a:1, b:2}), 'can restrict properties to those named in mixed args');
|
66
|
-
|
67
|
-
var Obj = function(){};
|
68
|
-
Obj.prototype = {a: 1, b: 2, c: 3};
|
69
|
-
ok(_.isEqual(_.pick(new Obj, 'a', 'c'), {a:1, c: 3}), 'include prototype props');
|
70
|
-
});
|
71
|
-
|
72
|
-
test("omit", function() {
|
73
|
-
var result;
|
74
|
-
result = _.omit({a:1, b:2, c:3}, 'b');
|
75
|
-
ok(_.isEqual(result, {a:1, c:3}), 'can omit a single named property');
|
76
|
-
result = _.omit({a:1, b:2, c:3}, 'a', 'c');
|
77
|
-
ok(_.isEqual(result, {b:2}), 'can omit several named properties');
|
78
|
-
result = _.omit({a:1, b:2, c:3}, ['b', 'c']);
|
79
|
-
ok(_.isEqual(result, {a:1}), 'can omit properties named in an array');
|
80
|
-
|
81
|
-
var Obj = function(){};
|
82
|
-
Obj.prototype = {a: 1, b: 2, c: 3};
|
83
|
-
ok(_.isEqual(_.omit(new Obj, 'b'), {a:1, c: 3}), 'include prototype props');
|
84
|
-
});
|
85
|
-
|
86
|
-
test("defaults", function() {
|
87
|
-
var result;
|
88
|
-
var options = {zero: 0, one: 1, empty: "", nan: NaN, string: "string"};
|
89
|
-
|
90
|
-
_.defaults(options, {zero: 1, one: 10, twenty: 20});
|
91
|
-
equal(options.zero, 0, 'value exists');
|
92
|
-
equal(options.one, 1, 'value exists');
|
93
|
-
equal(options.twenty, 20, 'default applied');
|
94
|
-
|
95
|
-
_.defaults(options, {empty: "full"}, {nan: "nan"}, {word: "word"}, {word: "dog"});
|
96
|
-
equal(options.empty, "", 'value exists');
|
97
|
-
ok(_.isNaN(options.nan), "NaN isn't overridden");
|
98
|
-
equal(options.word, "word", 'new value is added, first one wins');
|
99
|
-
});
|
100
|
-
|
101
|
-
test("clone", function() {
|
102
|
-
var moe = {name : 'moe', lucky : [13, 27, 34]};
|
103
|
-
var clone = _.clone(moe);
|
104
|
-
equal(clone.name, 'moe', 'the clone as the attributes of the original');
|
105
|
-
|
106
|
-
clone.name = 'curly';
|
107
|
-
ok(clone.name == 'curly' && moe.name == 'moe', 'clones can change shallow attributes without affecting the original');
|
108
|
-
|
109
|
-
clone.lucky.push(101);
|
110
|
-
equal(_.last(moe.lucky), 101, 'changes to deep attributes are shared with the original');
|
111
|
-
|
112
|
-
equal(_.clone(undefined), void 0, 'non objects should not be changed by clone');
|
113
|
-
equal(_.clone(1), 1, 'non objects should not be changed by clone');
|
114
|
-
equal(_.clone(null), null, 'non objects should not be changed by clone');
|
115
|
-
});
|
116
|
-
|
117
|
-
test("isEqual", function() {
|
118
|
-
function First() {
|
119
|
-
this.value = 1;
|
120
|
-
}
|
121
|
-
First.prototype.value = 1;
|
122
|
-
function Second() {
|
123
|
-
this.value = 1;
|
124
|
-
}
|
125
|
-
Second.prototype.value = 2;
|
126
|
-
|
127
|
-
// Basic equality and identity comparisons.
|
128
|
-
ok(_.isEqual(null, null), "`null` is equal to `null`");
|
129
|
-
ok(_.isEqual(), "`undefined` is equal to `undefined`");
|
130
|
-
|
131
|
-
ok(!_.isEqual(0, -0), "`0` is not equal to `-0`");
|
132
|
-
ok(!_.isEqual(-0, 0), "Commutative equality is implemented for `0` and `-0`");
|
133
|
-
ok(!_.isEqual(null, undefined), "`null` is not equal to `undefined`");
|
134
|
-
ok(!_.isEqual(undefined, null), "Commutative equality is implemented for `null` and `undefined`");
|
135
|
-
|
136
|
-
// String object and primitive comparisons.
|
137
|
-
ok(_.isEqual("Curly", "Curly"), "Identical string primitives are equal");
|
138
|
-
ok(_.isEqual(new String("Curly"), new String("Curly")), "String objects with identical primitive values are equal");
|
139
|
-
ok(_.isEqual(new String("Curly"), "Curly"), "String primitives and their corresponding object wrappers are equal");
|
140
|
-
ok(_.isEqual("Curly", new String("Curly")), "Commutative equality is implemented for string objects and primitives");
|
141
|
-
|
142
|
-
ok(!_.isEqual("Curly", "Larry"), "String primitives with different values are not equal");
|
143
|
-
ok(!_.isEqual(new String("Curly"), new String("Larry")), "String objects with different primitive values are not equal");
|
144
|
-
ok(!_.isEqual(new String("Curly"), {toString: function(){ return "Curly"; }}), "String objects and objects with a custom `toString` method are not equal");
|
145
|
-
|
146
|
-
// Number object and primitive comparisons.
|
147
|
-
ok(_.isEqual(75, 75), "Identical number primitives are equal");
|
148
|
-
ok(_.isEqual(new Number(75), new Number(75)), "Number objects with identical primitive values are equal");
|
149
|
-
ok(_.isEqual(75, new Number(75)), "Number primitives and their corresponding object wrappers are equal");
|
150
|
-
ok(_.isEqual(new Number(75), 75), "Commutative equality is implemented for number objects and primitives");
|
151
|
-
ok(!_.isEqual(new Number(0), -0), "`new Number(0)` and `-0` are not equal");
|
152
|
-
ok(!_.isEqual(0, new Number(-0)), "Commutative equality is implemented for `new Number(0)` and `-0`");
|
153
|
-
|
154
|
-
ok(!_.isEqual(new Number(75), new Number(63)), "Number objects with different primitive values are not equal");
|
155
|
-
ok(!_.isEqual(new Number(63), {valueOf: function(){ return 63; }}), "Number objects and objects with a `valueOf` method are not equal");
|
156
|
-
|
157
|
-
// Comparisons involving `NaN`.
|
158
|
-
ok(_.isEqual(NaN, NaN), "`NaN` is equal to `NaN`");
|
159
|
-
ok(!_.isEqual(61, NaN), "A number primitive is not equal to `NaN`");
|
160
|
-
ok(!_.isEqual(new Number(79), NaN), "A number object is not equal to `NaN`");
|
161
|
-
ok(!_.isEqual(Infinity, NaN), "`Infinity` is not equal to `NaN`");
|
162
|
-
|
163
|
-
// Boolean object and primitive comparisons.
|
164
|
-
ok(_.isEqual(true, true), "Identical boolean primitives are equal");
|
165
|
-
ok(_.isEqual(new Boolean, new Boolean), "Boolean objects with identical primitive values are equal");
|
166
|
-
ok(_.isEqual(true, new Boolean(true)), "Boolean primitives and their corresponding object wrappers are equal");
|
167
|
-
ok(_.isEqual(new Boolean(true), true), "Commutative equality is implemented for booleans");
|
168
|
-
ok(!_.isEqual(new Boolean(true), new Boolean), "Boolean objects with different primitive values are not equal");
|
169
|
-
|
170
|
-
// Common type coercions.
|
171
|
-
ok(!_.isEqual(true, new Boolean(false)), "Boolean objects are not equal to the boolean primitive `true`");
|
172
|
-
ok(!_.isEqual("75", 75), "String and number primitives with like values are not equal");
|
173
|
-
ok(!_.isEqual(new Number(63), new String(63)), "String and number objects with like values are not equal");
|
174
|
-
ok(!_.isEqual(75, "75"), "Commutative equality is implemented for like string and number values");
|
175
|
-
ok(!_.isEqual(0, ""), "Number and string primitives with like values are not equal");
|
176
|
-
ok(!_.isEqual(1, true), "Number and boolean primitives with like values are not equal");
|
177
|
-
ok(!_.isEqual(new Boolean(false), new Number(0)), "Boolean and number objects with like values are not equal");
|
178
|
-
ok(!_.isEqual(false, new String("")), "Boolean primitives and string objects with like values are not equal");
|
179
|
-
ok(!_.isEqual(12564504e5, new Date(2009, 9, 25)), "Dates and their corresponding numeric primitive values are not equal");
|
180
|
-
|
181
|
-
// Dates.
|
182
|
-
ok(_.isEqual(new Date(2009, 9, 25), new Date(2009, 9, 25)), "Date objects referencing identical times are equal");
|
183
|
-
ok(!_.isEqual(new Date(2009, 9, 25), new Date(2009, 11, 13)), "Date objects referencing different times are not equal");
|
184
|
-
ok(!_.isEqual(new Date(2009, 11, 13), {
|
185
|
-
getTime: function(){
|
186
|
-
return 12606876e5;
|
187
|
-
}
|
188
|
-
}), "Date objects and objects with a `getTime` method are not equal");
|
189
|
-
ok(!_.isEqual(new Date("Curly"), new Date("Curly")), "Invalid dates are not equal");
|
190
|
-
|
191
|
-
// Functions.
|
192
|
-
ok(!_.isEqual(First, Second), "Different functions with identical bodies and source code representations are not equal");
|
193
|
-
|
194
|
-
// RegExps.
|
195
|
-
ok(_.isEqual(/(?:)/gim, /(?:)/gim), "RegExps with equivalent patterns and flags are equal");
|
196
|
-
ok(!_.isEqual(/(?:)/g, /(?:)/gi), "RegExps with equivalent patterns and different flags are not equal");
|
197
|
-
ok(!_.isEqual(/Moe/gim, /Curly/gim), "RegExps with different patterns and equivalent flags are not equal");
|
198
|
-
ok(!_.isEqual(/(?:)/gi, /(?:)/g), "Commutative equality is implemented for RegExps");
|
199
|
-
ok(!_.isEqual(/Curly/g, {source: "Larry", global: true, ignoreCase: false, multiline: false}), "RegExps and RegExp-like objects are not equal");
|
200
|
-
|
201
|
-
// Empty arrays, array-like objects, and object literals.
|
202
|
-
ok(_.isEqual({}, {}), "Empty object literals are equal");
|
203
|
-
ok(_.isEqual([], []), "Empty array literals are equal");
|
204
|
-
ok(_.isEqual([{}], [{}]), "Empty nested arrays and objects are equal");
|
205
|
-
ok(!_.isEqual({length: 0}, []), "Array-like objects and arrays are not equal.");
|
206
|
-
ok(!_.isEqual([], {length: 0}), "Commutative equality is implemented for array-like objects");
|
207
|
-
|
208
|
-
ok(!_.isEqual({}, []), "Object literals and array literals are not equal");
|
209
|
-
ok(!_.isEqual([], {}), "Commutative equality is implemented for objects and arrays");
|
210
|
-
|
211
|
-
// Arrays with primitive and object values.
|
212
|
-
ok(_.isEqual([1, "Larry", true], [1, "Larry", true]), "Arrays containing identical primitives are equal");
|
213
|
-
ok(_.isEqual([(/Moe/g), new Date(2009, 9, 25)], [(/Moe/g), new Date(2009, 9, 25)]), "Arrays containing equivalent elements are equal");
|
214
|
-
|
215
|
-
// Multi-dimensional arrays.
|
216
|
-
var a = [new Number(47), false, "Larry", /Moe/, new Date(2009, 11, 13), ['running', 'biking', new String('programming')], {a: 47}];
|
217
|
-
var b = [new Number(47), false, "Larry", /Moe/, new Date(2009, 11, 13), ['running', 'biking', new String('programming')], {a: 47}];
|
218
|
-
ok(_.isEqual(a, b), "Arrays containing nested arrays and objects are recursively compared");
|
219
|
-
|
220
|
-
// Overwrite the methods defined in ES 5.1 section 15.4.4.
|
221
|
-
a.forEach = a.map = a.filter = a.every = a.indexOf = a.lastIndexOf = a.some = a.reduce = a.reduceRight = null;
|
222
|
-
b.join = b.pop = b.reverse = b.shift = b.slice = b.splice = b.concat = b.sort = b.unshift = null;
|
223
|
-
|
224
|
-
// Array elements and properties.
|
225
|
-
ok(_.isEqual(a, b), "Arrays containing equivalent elements and different non-numeric properties are equal");
|
226
|
-
a.push("White Rocks");
|
227
|
-
ok(!_.isEqual(a, b), "Arrays of different lengths are not equal");
|
228
|
-
a.push("East Boulder");
|
229
|
-
b.push("Gunbarrel Ranch", "Teller Farm");
|
230
|
-
ok(!_.isEqual(a, b), "Arrays of identical lengths containing different elements are not equal");
|
231
|
-
|
232
|
-
// Sparse arrays.
|
233
|
-
ok(_.isEqual(Array(3), Array(3)), "Sparse arrays of identical lengths are equal");
|
234
|
-
ok(!_.isEqual(Array(3), Array(6)), "Sparse arrays of different lengths are not equal when both are empty");
|
235
|
-
|
236
|
-
// Simple objects.
|
237
|
-
ok(_.isEqual({a: "Curly", b: 1, c: true}, {a: "Curly", b: 1, c: true}), "Objects containing identical primitives are equal");
|
238
|
-
ok(_.isEqual({a: /Curly/g, b: new Date(2009, 11, 13)}, {a: /Curly/g, b: new Date(2009, 11, 13)}), "Objects containing equivalent members are equal");
|
239
|
-
ok(!_.isEqual({a: 63, b: 75}, {a: 61, b: 55}), "Objects of identical sizes with different values are not equal");
|
240
|
-
ok(!_.isEqual({a: 63, b: 75}, {a: 61, c: 55}), "Objects of identical sizes with different property names are not equal");
|
241
|
-
ok(!_.isEqual({a: 1, b: 2}, {a: 1}), "Objects of different sizes are not equal");
|
242
|
-
ok(!_.isEqual({a: 1}, {a: 1, b: 2}), "Commutative equality is implemented for objects");
|
243
|
-
ok(!_.isEqual({x: 1, y: undefined}, {x: 1, z: 2}), "Objects with identical keys and different values are not equivalent");
|
244
|
-
|
245
|
-
// `A` contains nested objects and arrays.
|
246
|
-
a = {
|
247
|
-
name: new String("Moe Howard"),
|
248
|
-
age: new Number(77),
|
249
|
-
stooge: true,
|
250
|
-
hobbies: ["acting"],
|
251
|
-
film: {
|
252
|
-
name: "Sing a Song of Six Pants",
|
253
|
-
release: new Date(1947, 9, 30),
|
254
|
-
stars: [new String("Larry Fine"), "Shemp Howard"],
|
255
|
-
minutes: new Number(16),
|
256
|
-
seconds: 54
|
257
|
-
}
|
258
|
-
};
|
259
|
-
|
260
|
-
// `B` contains equivalent nested objects and arrays.
|
261
|
-
b = {
|
262
|
-
name: new String("Moe Howard"),
|
263
|
-
age: new Number(77),
|
264
|
-
stooge: true,
|
265
|
-
hobbies: ["acting"],
|
266
|
-
film: {
|
267
|
-
name: "Sing a Song of Six Pants",
|
268
|
-
release: new Date(1947, 9, 30),
|
269
|
-
stars: [new String("Larry Fine"), "Shemp Howard"],
|
270
|
-
minutes: new Number(16),
|
271
|
-
seconds: 54
|
272
|
-
}
|
273
|
-
};
|
274
|
-
ok(_.isEqual(a, b), "Objects with nested equivalent members are recursively compared");
|
275
|
-
|
276
|
-
// Instances.
|
277
|
-
ok(_.isEqual(new First, new First), "Object instances are equal");
|
278
|
-
ok(!_.isEqual(new First, new Second), "Objects with different constructors and identical own properties are not equal");
|
279
|
-
ok(!_.isEqual({value: 1}, new First), "Object instances and objects sharing equivalent properties are not equal");
|
280
|
-
ok(!_.isEqual({value: 2}, new Second), "The prototype chain of objects should not be examined");
|
281
|
-
|
282
|
-
// Circular Arrays.
|
283
|
-
(a = []).push(a);
|
284
|
-
(b = []).push(b);
|
285
|
-
ok(_.isEqual(a, b), "Arrays containing circular references are equal");
|
286
|
-
a.push(new String("Larry"));
|
287
|
-
b.push(new String("Larry"));
|
288
|
-
ok(_.isEqual(a, b), "Arrays containing circular references and equivalent properties are equal");
|
289
|
-
a.push("Shemp");
|
290
|
-
b.push("Curly");
|
291
|
-
ok(!_.isEqual(a, b), "Arrays containing circular references and different properties are not equal");
|
292
|
-
|
293
|
-
// More circular arrays #767.
|
294
|
-
a = ["everything is checked but", "this", "is not"];
|
295
|
-
a[1] = a;
|
296
|
-
b = ["everything is checked but", ["this", "array"], "is not"];
|
297
|
-
ok(!_.isEqual(a, b), "Comparison of circular references with non-circular references are not equal");
|
298
|
-
|
299
|
-
// Circular Objects.
|
300
|
-
a = {abc: null};
|
301
|
-
b = {abc: null};
|
302
|
-
a.abc = a;
|
303
|
-
b.abc = b;
|
304
|
-
ok(_.isEqual(a, b), "Objects containing circular references are equal");
|
305
|
-
a.def = 75;
|
306
|
-
b.def = 75;
|
307
|
-
ok(_.isEqual(a, b), "Objects containing circular references and equivalent properties are equal");
|
308
|
-
a.def = new Number(75);
|
309
|
-
b.def = new Number(63);
|
310
|
-
ok(!_.isEqual(a, b), "Objects containing circular references and different properties are not equal");
|
311
|
-
|
312
|
-
// More circular objects #767.
|
313
|
-
a = {everything: "is checked", but: "this", is: "not"};
|
314
|
-
a.but = a;
|
315
|
-
b = {everything: "is checked", but: {that:"object"}, is: "not"};
|
316
|
-
ok(!_.isEqual(a, b), "Comparison of circular references with non-circular object references are not equal");
|
317
|
-
|
318
|
-
// Cyclic Structures.
|
319
|
-
a = [{abc: null}];
|
320
|
-
b = [{abc: null}];
|
321
|
-
(a[0].abc = a).push(a);
|
322
|
-
(b[0].abc = b).push(b);
|
323
|
-
ok(_.isEqual(a, b), "Cyclic structures are equal");
|
324
|
-
a[0].def = "Larry";
|
325
|
-
b[0].def = "Larry";
|
326
|
-
ok(_.isEqual(a, b), "Cyclic structures containing equivalent properties are equal");
|
327
|
-
a[0].def = new String("Larry");
|
328
|
-
b[0].def = new String("Curly");
|
329
|
-
ok(!_.isEqual(a, b), "Cyclic structures containing different properties are not equal");
|
330
|
-
|
331
|
-
// Complex Circular References.
|
332
|
-
a = {foo: {b: {foo: {c: {foo: null}}}}};
|
333
|
-
b = {foo: {b: {foo: {c: {foo: null}}}}};
|
334
|
-
a.foo.b.foo.c.foo = a;
|
335
|
-
b.foo.b.foo.c.foo = b;
|
336
|
-
ok(_.isEqual(a, b), "Cyclic structures with nested and identically-named properties are equal");
|
337
|
-
|
338
|
-
// Chaining.
|
339
|
-
ok(!_.isEqual(_({x: 1, y: undefined}).chain(), _({x: 1, z: 2}).chain()), 'Chained objects containing different values are not equal');
|
340
|
-
equal(_({x: 1, y: 2}).chain().isEqual(_({x: 1, y: 2}).chain()).value(), true, '`isEqual` can be chained');
|
341
|
-
|
342
|
-
// Custom `isEqual` methods.
|
343
|
-
var isEqualObj = {isEqual: function (o) { return o.isEqual == this.isEqual; }, unique: {}};
|
344
|
-
var isEqualObjClone = {isEqual: isEqualObj.isEqual, unique: {}};
|
345
|
-
|
346
|
-
ok(_.isEqual(isEqualObj, isEqualObjClone), 'Both objects implement identical `isEqual` methods');
|
347
|
-
ok(_.isEqual(isEqualObjClone, isEqualObj), 'Commutative equality is implemented for objects with custom `isEqual` methods');
|
348
|
-
ok(!_.isEqual(isEqualObj, {}), 'Objects that do not implement equivalent `isEqual` methods are not equal');
|
349
|
-
ok(!_.isEqual({}, isEqualObj), 'Commutative equality is implemented for objects with different `isEqual` methods');
|
350
|
-
|
351
|
-
// Objects from another frame.
|
352
|
-
ok(_.isEqual({}, iObject));
|
353
|
-
});
|
354
|
-
|
355
|
-
test("isEmpty", function() {
|
356
|
-
ok(!_([1]).isEmpty(), '[1] is not empty');
|
357
|
-
ok(_.isEmpty([]), '[] is empty');
|
358
|
-
ok(!_.isEmpty({one : 1}), '{one : 1} is not empty');
|
359
|
-
ok(_.isEmpty({}), '{} is empty');
|
360
|
-
ok(_.isEmpty(new RegExp('')), 'objects with prototype properties are empty');
|
361
|
-
ok(_.isEmpty(null), 'null is empty');
|
362
|
-
ok(_.isEmpty(), 'undefined is empty');
|
363
|
-
ok(_.isEmpty(''), 'the empty string is empty');
|
364
|
-
ok(!_.isEmpty('moe'), 'but other strings are not');
|
365
|
-
|
366
|
-
var obj = {one : 1};
|
367
|
-
delete obj.one;
|
368
|
-
ok(_.isEmpty(obj), 'deleting all the keys from an object empties it');
|
369
|
-
});
|
370
|
-
|
371
|
-
// Setup remote variables for iFrame tests.
|
372
|
-
var iframe = document.createElement('iframe');
|
373
|
-
jQuery(iframe).appendTo(document.body);
|
374
|
-
var iDoc = iframe.contentDocument || iframe.contentWindow.document;
|
375
|
-
iDoc.write(
|
376
|
-
"<script>\
|
377
|
-
parent.iElement = document.createElement('div');\
|
378
|
-
parent.iArguments = (function(){ return arguments; })(1, 2, 3);\
|
379
|
-
parent.iArray = [1, 2, 3];\
|
380
|
-
parent.iString = new String('hello');\
|
381
|
-
parent.iNumber = new Number(100);\
|
382
|
-
parent.iFunction = (function(){});\
|
383
|
-
parent.iDate = new Date();\
|
384
|
-
parent.iRegExp = /hi/;\
|
385
|
-
parent.iNaN = NaN;\
|
386
|
-
parent.iNull = null;\
|
387
|
-
parent.iBoolean = new Boolean(false);\
|
388
|
-
parent.iUndefined = undefined;\
|
389
|
-
parent.iObject = {};\
|
390
|
-
</script>"
|
391
|
-
);
|
392
|
-
iDoc.close();
|
393
|
-
|
394
|
-
test("isElement", function() {
|
395
|
-
ok(!_.isElement('div'), 'strings are not dom elements');
|
396
|
-
ok(_.isElement($('html')[0]), 'the html tag is a DOM element');
|
397
|
-
ok(_.isElement(iElement), 'even from another frame');
|
398
|
-
});
|
399
|
-
|
400
|
-
test("isArguments", function() {
|
401
|
-
var args = (function(){ return arguments; })(1, 2, 3);
|
402
|
-
ok(!_.isArguments('string'), 'a string is not an arguments object');
|
403
|
-
ok(!_.isArguments(_.isArguments), 'a function is not an arguments object');
|
404
|
-
ok(_.isArguments(args), 'but the arguments object is an arguments object');
|
405
|
-
ok(!_.isArguments(_.toArray(args)), 'but not when it\'s converted into an array');
|
406
|
-
ok(!_.isArguments([1,2,3]), 'and not vanilla arrays.');
|
407
|
-
ok(_.isArguments(iArguments), 'even from another frame');
|
408
|
-
});
|
409
|
-
|
410
|
-
test("isObject", function() {
|
411
|
-
ok(_.isObject(arguments), 'the arguments object is object');
|
412
|
-
ok(_.isObject([1, 2, 3]), 'and arrays');
|
413
|
-
ok(_.isObject($('html')[0]), 'and DOM element');
|
414
|
-
ok(_.isObject(iElement), 'even from another frame');
|
415
|
-
ok(_.isObject(function () {}), 'and functions');
|
416
|
-
ok(_.isObject(iFunction), 'even from another frame');
|
417
|
-
ok(!_.isObject(null), 'but not null');
|
418
|
-
ok(!_.isObject(undefined), 'and not undefined');
|
419
|
-
ok(!_.isObject('string'), 'and not string');
|
420
|
-
ok(!_.isObject(12), 'and not number');
|
421
|
-
ok(!_.isObject(true), 'and not boolean');
|
422
|
-
ok(_.isObject(new String('string')), 'but new String()');
|
423
|
-
});
|
424
|
-
|
425
|
-
test("isArray", function() {
|
426
|
-
ok(!_.isArray(arguments), 'the arguments object is not an array');
|
427
|
-
ok(_.isArray([1, 2, 3]), 'but arrays are');
|
428
|
-
ok(_.isArray(iArray), 'even from another frame');
|
429
|
-
});
|
430
|
-
|
431
|
-
test("isString", function() {
|
432
|
-
ok(!_.isString(document.body), 'the document body is not a string');
|
433
|
-
ok(_.isString([1, 2, 3].join(', ')), 'but strings are');
|
434
|
-
ok(_.isString(iString), 'even from another frame');
|
435
|
-
});
|
436
|
-
|
437
|
-
test("isNumber", function() {
|
438
|
-
ok(!_.isNumber('string'), 'a string is not a number');
|
439
|
-
ok(!_.isNumber(arguments), 'the arguments object is not a number');
|
440
|
-
ok(!_.isNumber(undefined), 'undefined is not a number');
|
441
|
-
ok(_.isNumber(3 * 4 - 7 / 10), 'but numbers are');
|
442
|
-
ok(_.isNumber(NaN), 'NaN *is* a number');
|
443
|
-
ok(_.isNumber(Infinity), 'Infinity is a number');
|
444
|
-
ok(_.isNumber(iNumber), 'even from another frame');
|
445
|
-
ok(!_.isNumber('1'), 'numeric strings are not numbers');
|
446
|
-
});
|
447
|
-
|
448
|
-
test("isBoolean", function() {
|
449
|
-
ok(!_.isBoolean(2), 'a number is not a boolean');
|
450
|
-
ok(!_.isBoolean("string"), 'a string is not a boolean');
|
451
|
-
ok(!_.isBoolean("false"), 'the string "false" is not a boolean');
|
452
|
-
ok(!_.isBoolean("true"), 'the string "true" is not a boolean');
|
453
|
-
ok(!_.isBoolean(arguments), 'the arguments object is not a boolean');
|
454
|
-
ok(!_.isBoolean(undefined), 'undefined is not a boolean');
|
455
|
-
ok(!_.isBoolean(NaN), 'NaN is not a boolean');
|
456
|
-
ok(!_.isBoolean(null), 'null is not a boolean');
|
457
|
-
ok(_.isBoolean(true), 'but true is');
|
458
|
-
ok(_.isBoolean(false), 'and so is false');
|
459
|
-
ok(_.isBoolean(iBoolean), 'even from another frame');
|
460
|
-
});
|
461
|
-
|
462
|
-
test("isFunction", function() {
|
463
|
-
ok(!_.isFunction([1, 2, 3]), 'arrays are not functions');
|
464
|
-
ok(!_.isFunction('moe'), 'strings are not functions');
|
465
|
-
ok(_.isFunction(_.isFunction), 'but functions are');
|
466
|
-
ok(_.isFunction(iFunction), 'even from another frame');
|
467
|
-
});
|
468
|
-
|
469
|
-
test("isDate", function() {
|
470
|
-
ok(!_.isDate(100), 'numbers are not dates');
|
471
|
-
ok(!_.isDate({}), 'objects are not dates');
|
472
|
-
ok(_.isDate(new Date()), 'but dates are');
|
473
|
-
ok(_.isDate(iDate), 'even from another frame');
|
474
|
-
});
|
475
|
-
|
476
|
-
test("isRegExp", function() {
|
477
|
-
ok(!_.isRegExp(_.identity), 'functions are not RegExps');
|
478
|
-
ok(_.isRegExp(/identity/), 'but RegExps are');
|
479
|
-
ok(_.isRegExp(iRegExp), 'even from another frame');
|
480
|
-
});
|
481
|
-
|
482
|
-
test("isFinite", function() {
|
483
|
-
ok(!_.isFinite(undefined), 'undefined is not Finite');
|
484
|
-
ok(!_.isFinite(null), 'null is not Finite');
|
485
|
-
ok(!_.isFinite(NaN), 'NaN is not Finite');
|
486
|
-
ok(!_.isFinite(Infinity), 'Infinity is not Finite');
|
487
|
-
ok(!_.isFinite(-Infinity), '-Infinity is not Finite');
|
488
|
-
ok(!_.isFinite('12'), 'Strings are not numbers');
|
489
|
-
var obj = new Number(5);
|
490
|
-
ok(_.isFinite(obj), 'Number instances can be finite');
|
491
|
-
ok(_.isFinite(0), '0 is Finite');
|
492
|
-
ok(_.isFinite(123), 'Ints are Finite');
|
493
|
-
ok(_.isFinite(-12.44), 'Floats are Finite');
|
494
|
-
});
|
495
|
-
|
496
|
-
test("isNaN", function() {
|
497
|
-
ok(!_.isNaN(undefined), 'undefined is not NaN');
|
498
|
-
ok(!_.isNaN(null), 'null is not NaN');
|
499
|
-
ok(!_.isNaN(0), '0 is not NaN');
|
500
|
-
ok(_.isNaN(NaN), 'but NaN is');
|
501
|
-
ok(_.isNaN(iNaN), 'even from another frame');
|
502
|
-
ok(_.isNaN(new Number(NaN)), 'wrapped NaN is still NaN');
|
503
|
-
});
|
504
|
-
|
505
|
-
test("isNull", function() {
|
506
|
-
ok(!_.isNull(undefined), 'undefined is not null');
|
507
|
-
ok(!_.isNull(NaN), 'NaN is not null');
|
508
|
-
ok(_.isNull(null), 'but null is');
|
509
|
-
ok(_.isNull(iNull), 'even from another frame');
|
510
|
-
});
|
511
|
-
|
512
|
-
test("isUndefined", function() {
|
513
|
-
ok(!_.isUndefined(1), 'numbers are defined');
|
514
|
-
ok(!_.isUndefined(null), 'null is defined');
|
515
|
-
ok(!_.isUndefined(false), 'false is defined');
|
516
|
-
ok(!_.isUndefined(NaN), 'NaN is defined');
|
517
|
-
ok(_.isUndefined(), 'nothing is undefined');
|
518
|
-
ok(_.isUndefined(undefined), 'undefined is undefined');
|
519
|
-
ok(_.isUndefined(iUndefined), 'even from another frame');
|
520
|
-
});
|
521
|
-
|
522
|
-
if (window.ActiveXObject) {
|
523
|
-
test("IE host objects", function() {
|
524
|
-
var xml = new ActiveXObject("Msxml2.DOMDocument.3.0");
|
525
|
-
ok(!_.isNumber(xml));
|
526
|
-
ok(!_.isBoolean(xml));
|
527
|
-
ok(!_.isNaN(xml));
|
528
|
-
ok(!_.isFunction(xml));
|
529
|
-
ok(!_.isNull(xml));
|
530
|
-
ok(!_.isUndefined(xml));
|
531
|
-
});
|
532
|
-
}
|
533
|
-
|
534
|
-
test("tap", function() {
|
535
|
-
var intercepted = null;
|
536
|
-
var interceptor = function(obj) { intercepted = obj; };
|
537
|
-
var returned = _.tap(1, interceptor);
|
538
|
-
equal(intercepted, 1, "passes tapped object to interceptor");
|
539
|
-
equal(returned, 1, "returns tapped object");
|
540
|
-
|
541
|
-
returned = _([1,2,3]).chain().
|
542
|
-
map(function(n){ return n * 2; }).
|
543
|
-
max().
|
544
|
-
tap(interceptor).
|
545
|
-
value();
|
546
|
-
ok(returned == 6 && intercepted == 6, 'can use tapped objects in a chain');
|
547
|
-
});
|
548
|
-
});
|