burp_cms 1.3.13 → 1.3.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/app/assets/images/burp/add-image-2.jpg +0 -0
- data/app/assets/images/burp/add-image-3.jpg +0 -0
- data/app/assets/images/burp/add-image-4.jpg +0 -0
- data/app/assets/images/burp/enter-page-edit-mode-4.jpg +0 -0
- data/app/assets/images/burp/remove-image-2.jpg +0 -0
- data/app/assets/images/burp/remove-image-3.jpg +0 -0
- data/app/assets/images/burp/remove-image-4.jpg +0 -0
- data/app/assets/images/burp/remove-image-5.jpg +0 -0
- data/app/views/burp/static/help.html.erb +8 -8
- data/lib/burp/version.rb +1 -1
- metadata +95 -234
- data/app/assets/images/burp/add-image-2.png +0 -0
- data/app/assets/images/burp/add-image-3.png +0 -0
- data/app/assets/images/burp/add-image-4.png +0 -0
- data/app/assets/images/burp/enter-page-edit-mode-4.png +0 -0
- data/app/assets/images/burp/remove-image-2.png +0 -0
- data/app/assets/images/burp/remove-image-3.png +0 -0
- data/app/assets/images/burp/remove-image-4.png +0 -0
- data/app/assets/images/burp/remove-image-5.png +0 -0
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/README.md +0 -8
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/activeline.html +0 -72
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/changemode.html +0 -50
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/closetag.html +0 -65
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/complete.html +0 -70
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/emacs.html +0 -59
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/folding.html +0 -61
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/formatting.html +0 -80
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/fullscreen.html +0 -152
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/loadmode.html +0 -39
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html +0 -52
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html +0 -37
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/multiplex.html +0 -59
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/mustache.html +0 -57
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/preview.html +0 -76
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/resize.html +0 -41
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/runmode.html +0 -49
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/search.html +0 -83
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/theme.html +0 -78
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/vim.html +0 -50
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/visibletabs.html +0 -61
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/baboon.png +0 -0
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/baboon_vector.svg +0 -153
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/compress.html +0 -148
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/docs.css +0 -154
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/internals.html +0 -494
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/manual.html +0 -1128
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/oldrelease.html +0 -267
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/reporting.html +0 -57
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/upgrade_v2.2.html +0 -95
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/index.html +0 -417
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/clike.js +0 -271
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/index.html +0 -101
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/scala.html +0 -765
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clojure/clojure.js +0 -207
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clojure/index.html +0 -66
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/LICENSE +0 -22
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/coffeescript.js +0 -347
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/index.html +0 -727
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/diff/diff.js +0 -32
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/diff/index.html +0 -104
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ecl/ecl.js +0 -203
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ecl/index.html +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/erlang/erlang.js +0 -251
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/erlang/index.html +0 -61
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/gfm/gfm.js +0 -144
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/gfm/index.html +0 -47
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/go/go.js +0 -170
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/go/index.html +0 -72
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/groovy/groovy.js +0 -210
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/groovy/index.html +0 -71
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/haskell/haskell.js +0 -242
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/haskell/index.html +0 -60
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/jinja2/index.html +0 -37
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/jinja2/jinja2.js +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/less/index.html +0 -618
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/less/less.js +0 -232
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/lua/index.html +0 -72
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/lua/lua.js +0 -140
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/mysql/index.html +0 -41
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/mysql/mysql.js +0 -188
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ntriples/index.html +0 -32
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ntriples/ntriples.js +0 -172
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/LICENSE +0 -7
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/index.html +0 -48
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/pascal.js +0 -94
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/LICENSE +0 -19
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/index.html +0 -62
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/perl.js +0 -816
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/php/index.html +0 -48
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/php/php.js +0 -150
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pig/index.html +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pig/pig.js +0 -172
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/index.html +0 -62
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/plsql.js +0 -217
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/properties/index.html +0 -40
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/properties/properties.js +0 -63
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/LICENSE.txt +0 -21
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/index.html +0 -122
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/python.js +0 -338
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/LICENSE +0 -24
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/index.html +0 -73
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/r.js +0 -141
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/changes/changes.js +0 -19
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/changes/index.html +0 -53
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/index.html +0 -99
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/spec.css +0 -5
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/spec.js +0 -66
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rst/index.html +0 -525
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rst/rst.js +0 -326
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/LICENSE +0 -24
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/index.html +0 -171
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/ruby.js +0 -195
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rust/index.html +0 -48
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rust/rust.js +0 -432
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/scheme/index.html +0 -64
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/scheme/scheme.js +0 -230
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/shell/index.html +0 -50
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/shell/shell.js +0 -103
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smalltalk/index.html +0 -55
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smalltalk/smalltalk.js +0 -139
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smarty/index.html +0 -82
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smarty/smarty.js +0 -148
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/sparql/index.html +0 -40
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/sparql/sparql.js +0 -143
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/index.html +0 -95
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/stex.js +0 -182
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/test.html +0 -263
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/index.html +0 -140
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/tiddlywiki.css +0 -14
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/tiddlywiki.js +0 -384
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/index.html +0 -82
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/tiki.css +0 -26
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/tiki.js +0 -316
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/vbscript/index.html +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/vbscript/vbscript.js +0 -26
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/velocity/index.html +0 -103
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/velocity/velocity.js +0 -146
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/verilog/index.html +0 -210
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/verilog/verilog.js +0 -194
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/LICENSE +0 -20
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/index.html +0 -222
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/index.html +0 -27
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testBase.js +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testEmptySequenceKeyword.js +0 -16
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testMultiAttr.js +0 -16
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testNamespaces.js +0 -91
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testProcessingInstructions.js +0 -16
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testQuotes.js +0 -19
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/xquery.js +0 -448
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/yaml/index.html +0 -67
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/yaml/yaml.js +0 -95
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/index.html +0 -28
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/mode_test.css +0 -22
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/mode_test.js +0 -164
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/test.js +0 -344
- data/app/assets/packages/burp/editing/dep/FontAwesome/FontAwesome-Vectors.pdf +11 -3176
- data/app/assets/packages/burp/editing/dep/FontAwesome/FontAwesome.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/README.md +0 -18
- data/app/assets/packages/burp/editing/dep/FontAwesome/css/font-awesome-ie7.css +0 -645
- data/app/assets/packages/burp/editing/dep/FontAwesome/css/font-awesome.less +0 -309
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/font-awesome-ie7.css +0 -213
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/font-awesome.css +0 -303
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/prettify.css +0 -30
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/site.css +0 -4904
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.svg +0 -255
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.woff +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_300-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_300-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_500-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_500-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/proximanova-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/proximanova-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/ico/favicon.ico +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/backbone.min.js +0 -37
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/index/index.js +0 -89
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/jquery-1.7.1.min.js +0 -4
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/prettify.min.js +0 -28
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-alert.js +0 -94
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-button.js +0 -98
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-carousel.js +0 -157
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-collapse.js +0 -136
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-dropdown.js +0 -92
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-modal.js +0 -210
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-popover.js +0 -95
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-scrollspy.js +0 -125
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-tab.js +0 -130
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-tooltip.js +0 -270
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-transition.js +0 -51
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-typeahead.js +0 -271
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/underscore.min.js +0 -31
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-awesome-ie7.less +0 -245
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-awesome.less +0 -327
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-site.less +0 -26
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/mixins.less +0 -43
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/site.less +0 -300
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/accordion.less +0 -33
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/alerts.less +0 -58
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/bootstrap.less +0 -62
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/breadcrumbs.less +0 -24
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/button-groups.less +0 -191
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/buttons.less +0 -191
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/carousel.less +0 -121
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/close.less +0 -29
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/code.less +0 -57
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/component-animations.less +0 -20
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/dropdowns.less +0 -143
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/forms.less +0 -584
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/grid.less +0 -5
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/hero-unit.less +0 -22
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/labels-badges.less +0 -55
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/layouts.less +0 -17
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/mixins.less +0 -631
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/modals.less +0 -90
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/navbar.less +0 -364
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/navs.less +0 -363
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/pager.less +0 -36
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/pagination.less +0 -56
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/popovers.less +0 -49
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/progress-bars.less +0 -117
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/reset.less +0 -126
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-1200px-min.less +0 -26
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-767px-max.less +0 -149
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-768px-979px.less +0 -17
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-navbar.less +0 -146
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-utilities.less +0 -41
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive.less +0 -48
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/scaffolding.less +0 -29
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/sprites.less +0 -191
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/tables.less +0 -176
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/thumbnails.less +0 -47
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/tooltip.less +0 -35
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/type.less +0 -235
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/utilities.less +0 -23
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/variables.less +0 -205
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/wells.less +0 -27
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/variables.less +0 -206
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/index.html +0 -1087
- data/app/assets/packages/burp/editing/dep/FontAwesome/sass/font-awesome.sass +0 -712
- data/app/assets/packages/burp/editing/dep/FontAwesome/sass/font-awesome.scss +0 -329
@@ -1,164 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Helper to test CodeMirror highlighting modes. It pretty prints output of the
|
3
|
-
* highlighter and can check against expected styles.
|
4
|
-
*
|
5
|
-
* See test.html in the stex mode for examples.
|
6
|
-
*/
|
7
|
-
ModeTest = {};
|
8
|
-
|
9
|
-
ModeTest.modeOptions = {};
|
10
|
-
ModeTest.modeName = CodeMirror.defaults.mode;
|
11
|
-
|
12
|
-
/* keep track of results for printSummary */
|
13
|
-
ModeTest.tests = 0;
|
14
|
-
ModeTest.passes = 0;
|
15
|
-
|
16
|
-
/**
|
17
|
-
* Run a test; prettyprints the results using document.write().
|
18
|
-
*
|
19
|
-
* @param string to highlight
|
20
|
-
*
|
21
|
-
* @param style[i] expected style of the i'th token in string
|
22
|
-
*
|
23
|
-
* @param token[i] expected value for the i'th token in string
|
24
|
-
*/
|
25
|
-
ModeTest.test = function() {
|
26
|
-
ModeTest.tests += 1;
|
27
|
-
|
28
|
-
var mode = CodeMirror.getMode(ModeTest.modeOptions, ModeTest.modeName);
|
29
|
-
|
30
|
-
if (arguments.length < 1) {
|
31
|
-
throw "must have text for test";
|
32
|
-
}
|
33
|
-
if (arguments.length % 2 != 1) {
|
34
|
-
throw "must have text for test plus expected (style, token) pairs";
|
35
|
-
}
|
36
|
-
|
37
|
-
var text = arguments[0];
|
38
|
-
var expectedOutput = [];
|
39
|
-
for (var i = 1; i < arguments.length; i += 2) {
|
40
|
-
expectedOutput.push([arguments[i],arguments[i + 1]]);
|
41
|
-
}
|
42
|
-
|
43
|
-
var observedOutput = ModeTest.highlight(text, mode)
|
44
|
-
|
45
|
-
var pass, passStyle = "";
|
46
|
-
if (expectedOutput.length > 0) {
|
47
|
-
pass = ModeTest.highlightOutputsEqual(expectedOutput, observedOutput);
|
48
|
-
passStyle = pass ? 'mt-pass' : 'mt-fail';
|
49
|
-
ModeTest.passes += pass ? 1 : 0;
|
50
|
-
}
|
51
|
-
|
52
|
-
var s = '';
|
53
|
-
s += '<div class="mt-test ' + passStyle + '">';
|
54
|
-
s += '<pre>' + ModeTest.htmlEscape(text) + '</pre>';
|
55
|
-
s += '<div class="cm-s-default">';
|
56
|
-
if (pass || expectedOutput.length == 0) {
|
57
|
-
s += ModeTest.prettyPrintOutputTable(observedOutput);
|
58
|
-
} else {
|
59
|
-
s += 'expected:';
|
60
|
-
s += ModeTest.prettyPrintOutputTable(expectedOutput);
|
61
|
-
s += 'observed:';
|
62
|
-
s += ModeTest.prettyPrintOutputTable(observedOutput);
|
63
|
-
}
|
64
|
-
s += '</div>';
|
65
|
-
s += '</div>';
|
66
|
-
document.write(s);
|
67
|
-
}
|
68
|
-
|
69
|
-
/**
|
70
|
-
* Emulation of CodeMirror's internal highlight routine for testing. Multi-line
|
71
|
-
* input is supported.
|
72
|
-
*
|
73
|
-
* @param string to highlight
|
74
|
-
*
|
75
|
-
* @param mode the mode that will do the actual highlighting
|
76
|
-
*
|
77
|
-
* @return array of [style, token] pairs
|
78
|
-
*/
|
79
|
-
ModeTest.highlight = function(string, mode) {
|
80
|
-
var state = mode.startState()
|
81
|
-
|
82
|
-
var lines = string.replace(/\r\n/g,'\n').split('\n');
|
83
|
-
var output = [];
|
84
|
-
for (var i = 0; i < lines.length; ++i) {
|
85
|
-
var line = lines[i];
|
86
|
-
var stream = new CodeMirror.StringStream(line);
|
87
|
-
if (line == "" && mode.blankLine) mode.blankLine(state);
|
88
|
-
while (!stream.eol()) {
|
89
|
-
var style = mode.token(stream, state);
|
90
|
-
var substr = line.slice(stream.start, stream.pos);
|
91
|
-
output.push([style, substr]);
|
92
|
-
stream.start = stream.pos;
|
93
|
-
}
|
94
|
-
}
|
95
|
-
|
96
|
-
return output;
|
97
|
-
}
|
98
|
-
|
99
|
-
/**
|
100
|
-
* Compare two arrays of output from ModeTest.highlight.
|
101
|
-
*
|
102
|
-
* @param o1 array of [style, token] pairs
|
103
|
-
*
|
104
|
-
* @param o2 array of [style, token] pairs
|
105
|
-
*
|
106
|
-
* @return boolean; true iff outputs equal
|
107
|
-
*/
|
108
|
-
ModeTest.highlightOutputsEqual = function(o1, o2) {
|
109
|
-
var eq = (o1.length == o2.length);
|
110
|
-
if (eq) {
|
111
|
-
for (var j in o1) {
|
112
|
-
eq = eq &&
|
113
|
-
o1[j].length == 2 && o1[j][0] == o2[j][0] && o1[j][1] == o2[j][1];
|
114
|
-
}
|
115
|
-
}
|
116
|
-
return eq;
|
117
|
-
}
|
118
|
-
|
119
|
-
/**
|
120
|
-
* Print tokens and corresponding styles in a table. Spaces in the token are
|
121
|
-
* replaced with 'interpunct' dots (·).
|
122
|
-
*
|
123
|
-
* @param output array of [style, token] pairs
|
124
|
-
*
|
125
|
-
* @return html string
|
126
|
-
*/
|
127
|
-
ModeTest.prettyPrintOutputTable = function(output) {
|
128
|
-
var s = '<table class="mt-output">';
|
129
|
-
s += '<tr>';
|
130
|
-
for (var i = 0; i < output.length; ++i) {
|
131
|
-
var token = output[i];
|
132
|
-
s +=
|
133
|
-
'<td class="mt-token">' +
|
134
|
-
'<span class="cm-' + token[0] + '">' +
|
135
|
-
ModeTest.htmlEscape(token[1]).replace(/ /g,'·') +
|
136
|
-
'</span>' +
|
137
|
-
'</td>';
|
138
|
-
}
|
139
|
-
s += '</tr><tr>';
|
140
|
-
for (var i = 0; i < output.length; ++i) {
|
141
|
-
var token = output[i];
|
142
|
-
s +=
|
143
|
-
'<td class="mt-style"><span>' + token[0] + '</span></td>';
|
144
|
-
}
|
145
|
-
s += '</table>';
|
146
|
-
return s;
|
147
|
-
}
|
148
|
-
|
149
|
-
/**
|
150
|
-
* Print how many tests have run so far and how many of those passed.
|
151
|
-
*/
|
152
|
-
ModeTest.printSummary = function() {
|
153
|
-
document.write(ModeTest.passes + ' passes for ' + ModeTest.tests + ' tests');
|
154
|
-
}
|
155
|
-
|
156
|
-
/**
|
157
|
-
* Basic HTML escaping.
|
158
|
-
*/
|
159
|
-
ModeTest.htmlEscape = function(str) {
|
160
|
-
str = str.toString();
|
161
|
-
return str.replace(/[<&]/g,
|
162
|
-
function(str) {return str == "&" ? "&" : "<";});
|
163
|
-
}
|
164
|
-
|
@@ -1,344 +0,0 @@
|
|
1
|
-
var tests = [];
|
2
|
-
|
3
|
-
test("fromTextArea", function() {
|
4
|
-
var te = document.getElementById("code");
|
5
|
-
te.value = "CONTENT";
|
6
|
-
var cm = CodeMirror.fromTextArea(te);
|
7
|
-
is(!te.offsetHeight);
|
8
|
-
eq(cm.getValue(), "CONTENT");
|
9
|
-
cm.setValue("foo\nbar");
|
10
|
-
eq(cm.getValue(), "foo\nbar");
|
11
|
-
cm.save();
|
12
|
-
is(/^foo\r?\nbar$/.test(te.value));
|
13
|
-
cm.setValue("xxx");
|
14
|
-
cm.toTextArea();
|
15
|
-
is(te.offsetHeight);
|
16
|
-
eq(te.value, "xxx");
|
17
|
-
});
|
18
|
-
|
19
|
-
testCM("getRange", function(cm) {
|
20
|
-
eq(cm.getLine(0), "1234");
|
21
|
-
eq(cm.getLine(1), "5678");
|
22
|
-
eq(cm.getLine(2), null);
|
23
|
-
eq(cm.getLine(-1), null);
|
24
|
-
eq(cm.getRange({line: 0, ch: 0}, {line: 0, ch: 3}), "123");
|
25
|
-
eq(cm.getRange({line: 0, ch: -1}, {line: 0, ch: 200}), "1234");
|
26
|
-
eq(cm.getRange({line: 0, ch: 2}, {line: 1, ch: 2}), "34\n56");
|
27
|
-
eq(cm.getRange({line: 1, ch: 2}, {line: 100, ch: 0}), "78");
|
28
|
-
}, {value: "1234\n5678"});
|
29
|
-
|
30
|
-
testCM("replaceRange", function(cm) {
|
31
|
-
eq(cm.getValue(), "");
|
32
|
-
cm.replaceRange("foo\n", {line: 0, ch: 0});
|
33
|
-
eq(cm.getValue(), "foo\n");
|
34
|
-
cm.replaceRange("a\nb", {line: 0, ch: 1});
|
35
|
-
eq(cm.getValue(), "fa\nboo\n");
|
36
|
-
eq(cm.lineCount(), 3);
|
37
|
-
cm.replaceRange("xyzzy", {line: 0, ch: 0}, {line: 1, ch: 1});
|
38
|
-
eq(cm.getValue(), "xyzzyoo\n");
|
39
|
-
cm.replaceRange("abc", {line: 0, ch: 0}, {line: 10, ch: 0});
|
40
|
-
eq(cm.getValue(), "abc");
|
41
|
-
eq(cm.lineCount(), 1);
|
42
|
-
});
|
43
|
-
|
44
|
-
testCM("selection", function(cm) {
|
45
|
-
cm.setSelection({line: 0, ch: 4}, {line: 2, ch: 2});
|
46
|
-
is(cm.somethingSelected());
|
47
|
-
eq(cm.getSelection(), "11\n222222\n33");
|
48
|
-
eqPos(cm.getCursor(false), {line: 2, ch: 2});
|
49
|
-
eqPos(cm.getCursor(true), {line: 0, ch: 4});
|
50
|
-
cm.setSelection({line: 1, ch: 0});
|
51
|
-
is(!cm.somethingSelected());
|
52
|
-
eq(cm.getSelection(), "");
|
53
|
-
eqPos(cm.getCursor(true), {line: 1, ch: 0});
|
54
|
-
cm.replaceSelection("abc");
|
55
|
-
eq(cm.getSelection(), "abc");
|
56
|
-
eq(cm.getValue(), "111111\nabc222222\n333333");
|
57
|
-
cm.replaceSelection("def", "end");
|
58
|
-
eq(cm.getSelection(), "");
|
59
|
-
eqPos(cm.getCursor(true), {line: 1, ch: 3});
|
60
|
-
cm.setCursor({line: 2, ch: 1});
|
61
|
-
eqPos(cm.getCursor(true), {line: 2, ch: 1});
|
62
|
-
cm.setCursor(1, 2);
|
63
|
-
eqPos(cm.getCursor(true), {line: 1, ch: 2});
|
64
|
-
}, {value: "111111\n222222\n333333"});
|
65
|
-
|
66
|
-
testCM("lines", function(cm) {
|
67
|
-
eq(cm.getLine(0), "111111");
|
68
|
-
eq(cm.getLine(1), "222222");
|
69
|
-
eq(cm.getLine(-1), null);
|
70
|
-
cm.removeLine(1);
|
71
|
-
cm.setLine(1, "abc");
|
72
|
-
eq(cm.getValue(), "111111\nabc");
|
73
|
-
}, {value: "111111\n222222\n333333"});
|
74
|
-
|
75
|
-
testCM("indent", function(cm) {
|
76
|
-
cm.indentLine(1);
|
77
|
-
eq(cm.getLine(1), " blah();");
|
78
|
-
cm.setOption("indentUnit", 8);
|
79
|
-
cm.indentLine(1);
|
80
|
-
eq(cm.getLine(1), "\tblah();");
|
81
|
-
}, {value: "if (x) {\nblah();\n}", indentUnit: 3, indentWithTabs: true, tabSize: 8});
|
82
|
-
|
83
|
-
test("defaults", function() {
|
84
|
-
var olddefaults = CodeMirror.defaults, defs = CodeMirror.defaults = {};
|
85
|
-
for (var opt in olddefaults) defs[opt] = olddefaults[opt];
|
86
|
-
defs.indentUnit = 5;
|
87
|
-
defs.value = "uu";
|
88
|
-
defs.enterMode = "keep";
|
89
|
-
defs.tabindex = 55;
|
90
|
-
var place = document.getElementById("testground"), cm = CodeMirror(place);
|
91
|
-
try {
|
92
|
-
eq(cm.getOption("indentUnit"), 5);
|
93
|
-
cm.setOption("indentUnit", 10);
|
94
|
-
eq(defs.indentUnit, 5);
|
95
|
-
eq(cm.getValue(), "uu");
|
96
|
-
eq(cm.getOption("enterMode"), "keep");
|
97
|
-
eq(cm.getInputField().tabIndex, 55);
|
98
|
-
}
|
99
|
-
finally {
|
100
|
-
CodeMirror.defaults = olddefaults;
|
101
|
-
place.removeChild(cm.getWrapperElement());
|
102
|
-
}
|
103
|
-
});
|
104
|
-
|
105
|
-
testCM("lineInfo", function(cm) {
|
106
|
-
eq(cm.lineInfo(-1), null);
|
107
|
-
var lh = cm.setMarker(1, "FOO", "bar");
|
108
|
-
var info = cm.lineInfo(1);
|
109
|
-
eq(info.text, "222222");
|
110
|
-
eq(info.markerText, "FOO");
|
111
|
-
eq(info.markerClass, "bar");
|
112
|
-
eq(info.line, 1);
|
113
|
-
eq(cm.lineInfo(2).markerText, null);
|
114
|
-
cm.clearMarker(lh);
|
115
|
-
eq(cm.lineInfo(1).markerText, null);
|
116
|
-
}, {value: "111111\n222222\n333333"});
|
117
|
-
|
118
|
-
testCM("coords", function(cm) {
|
119
|
-
var scroller = cm.getScrollerElement();
|
120
|
-
scroller.style.height = "100px";
|
121
|
-
var content = [];
|
122
|
-
for (var i = 0; i < 200; ++i) content.push("------------------------------" + i);
|
123
|
-
cm.setValue(content.join("\n"));
|
124
|
-
var top = cm.charCoords({line: 0, ch: 0});
|
125
|
-
var bot = cm.charCoords({line: 200, ch: 30});
|
126
|
-
is(top.x < bot.x);
|
127
|
-
is(top.y < bot.y);
|
128
|
-
is(top.y < top.yBot);
|
129
|
-
cm.scrollTo(null, 100);
|
130
|
-
var top2 = cm.charCoords({line: 0, ch: 0});
|
131
|
-
is(top.y > top2.y);
|
132
|
-
eq(top.x, top2.x);
|
133
|
-
});
|
134
|
-
|
135
|
-
testCM("coordsChar", function(cm) {
|
136
|
-
var content = [];
|
137
|
-
for (var i = 0; i < 70; ++i) content.push("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
|
138
|
-
cm.setValue(content.join("\n"));
|
139
|
-
for (var ch = 0; ch < 35; ch += 2) {
|
140
|
-
for (var line = 0; line < 70; line += 5) {
|
141
|
-
cm.setCursor(line, ch);
|
142
|
-
var coords = cm.charCoords({line: line, ch: ch});
|
143
|
-
var pos = cm.coordsChar({x: coords.x, y: coords.y + 1});
|
144
|
-
eq(pos.line, line);
|
145
|
-
eq(pos.ch, ch);
|
146
|
-
}
|
147
|
-
}
|
148
|
-
});
|
149
|
-
|
150
|
-
testCM("posFromIndex", function(cm) {
|
151
|
-
cm.setValue(
|
152
|
-
"This function should\n" +
|
153
|
-
"convert a zero based index\n" +
|
154
|
-
"to line and ch."
|
155
|
-
);
|
156
|
-
|
157
|
-
var examples = [
|
158
|
-
{ index: -1, line: 0, ch: 0 }, // <- Tests clipping
|
159
|
-
{ index: 0, line: 0, ch: 0 },
|
160
|
-
{ index: 10, line: 0, ch: 10 },
|
161
|
-
{ index: 39, line: 1, ch: 18 },
|
162
|
-
{ index: 55, line: 2, ch: 7 },
|
163
|
-
{ index: 63, line: 2, ch: 15 },
|
164
|
-
{ index: 64, line: 2, ch: 15 } // <- Tests clipping
|
165
|
-
];
|
166
|
-
|
167
|
-
for (var i = 0; i < examples.length; i++) {
|
168
|
-
var example = examples[i];
|
169
|
-
var pos = cm.posFromIndex(example.index);
|
170
|
-
eq(pos.line, example.line);
|
171
|
-
eq(pos.ch, example.ch);
|
172
|
-
if (example.index >= 0 && example.index < 64)
|
173
|
-
eq(cm.indexFromPos(pos), example.index);
|
174
|
-
}
|
175
|
-
});
|
176
|
-
|
177
|
-
testCM("undo", function(cm) {
|
178
|
-
cm.setLine(0, "def");
|
179
|
-
eq(cm.historySize().undo, 1);
|
180
|
-
cm.undo();
|
181
|
-
eq(cm.getValue(), "abc");
|
182
|
-
eq(cm.historySize().undo, 0);
|
183
|
-
eq(cm.historySize().redo, 1);
|
184
|
-
cm.redo();
|
185
|
-
eq(cm.getValue(), "def");
|
186
|
-
eq(cm.historySize().undo, 1);
|
187
|
-
eq(cm.historySize().redo, 0);
|
188
|
-
cm.setValue("1\n\n\n2");
|
189
|
-
cm.clearHistory();
|
190
|
-
eq(cm.historySize().undo, 0);
|
191
|
-
for (var i = 0; i < 20; ++i) {
|
192
|
-
cm.replaceRange("a", {line: 0, ch: 0});
|
193
|
-
cm.replaceRange("b", {line: 3, ch: 0});
|
194
|
-
}
|
195
|
-
eq(cm.historySize().undo, 40);
|
196
|
-
for (var i = 0; i < 40; ++i)
|
197
|
-
cm.undo();
|
198
|
-
eq(cm.historySize().redo, 40);
|
199
|
-
eq(cm.getValue(), "1\n\n\n2");
|
200
|
-
}, {value: "abc"});
|
201
|
-
|
202
|
-
testCM("undoMultiLine", function(cm) {
|
203
|
-
cm.replaceRange("x", {line:0, ch: 0});
|
204
|
-
cm.replaceRange("y", {line:1, ch: 0});
|
205
|
-
cm.undo();
|
206
|
-
eq(cm.getValue(), "abc\ndef\nghi");
|
207
|
-
cm.replaceRange("y", {line:1, ch: 0});
|
208
|
-
cm.replaceRange("x", {line:0, ch: 0});
|
209
|
-
cm.undo();
|
210
|
-
eq(cm.getValue(), "abc\ndef\nghi");
|
211
|
-
cm.replaceRange("y", {line:2, ch: 0});
|
212
|
-
cm.replaceRange("x", {line:1, ch: 0});
|
213
|
-
cm.replaceRange("z", {line:2, ch: 0});
|
214
|
-
cm.undo();
|
215
|
-
eq(cm.getValue(), "abc\ndef\nghi");
|
216
|
-
}, {value: "abc\ndef\nghi"});
|
217
|
-
|
218
|
-
testCM("markTextSingleLine", function(cm) {
|
219
|
-
forEach([{a: 0, b: 1, c: "", f: 2, t: 5},
|
220
|
-
{a: 0, b: 4, c: "", f: 0, t: 2},
|
221
|
-
{a: 1, b: 2, c: "x", f: 3, t: 6},
|
222
|
-
{a: 4, b: 5, c: "", f: 3, t: 5},
|
223
|
-
{a: 4, b: 5, c: "xx", f: 3, t: 7},
|
224
|
-
{a: 2, b: 5, c: "", f: 2, t: 3},
|
225
|
-
{a: 2, b: 5, c: "abcd", f: 6, t: 7},
|
226
|
-
{a: 2, b: 6, c: "x", f: null, t: null},
|
227
|
-
{a: 3, b: 6, c: "", f: null, t: null},
|
228
|
-
{a: 0, b: 9, c: "hallo", f: null, t: null},
|
229
|
-
{a: 4, b: 6, c: "x", f: 3, t: 4},
|
230
|
-
{a: 4, b: 8, c: "", f: 3, t: 4},
|
231
|
-
{a: 6, b: 6, c: "a", f: 3, t: 6},
|
232
|
-
{a: 8, b: 9, c: "", f: 3, t: 6}], function(test) {
|
233
|
-
cm.setValue("1234567890");
|
234
|
-
var r = cm.markText({line: 0, ch: 3}, {line: 0, ch: 6}, "foo");
|
235
|
-
cm.replaceRange(test.c, {line: 0, ch: test.a}, {line: 0, ch: test.b});
|
236
|
-
var f = r.find();
|
237
|
-
eq(f.from && f.from.ch, test.f); eq(f.to && f.to.ch, test.t);
|
238
|
-
});
|
239
|
-
});
|
240
|
-
|
241
|
-
testCM("markTextMultiLine", function(cm) {
|
242
|
-
function p(v) { return v && {line: v[0], ch: v[1]}; }
|
243
|
-
forEach([{a: [0, 0], b: [0, 5], c: "", f: [0, 0], t: [2, 5]},
|
244
|
-
{a: [0, 1], b: [0, 10], c: "", f: [0, 1], t: [2, 5]},
|
245
|
-
{a: [0, 5], b: [0, 6], c: "x", f: [0, 6], t: [2, 5]},
|
246
|
-
{a: [0, 0], b: [1, 0], c: "", f: [0, 0], t: [1, 5]},
|
247
|
-
{a: [0, 6], b: [2, 4], c: "", f: [0, 5], t: [0, 7]},
|
248
|
-
{a: [0, 6], b: [2, 4], c: "aa", f: [0, 5], t: [0, 9]},
|
249
|
-
{a: [1, 2], b: [1, 8], c: "", f: [0, 5], t: [2, 5]},
|
250
|
-
{a: [0, 5], b: [2, 5], c: "xx", f: null, t: null},
|
251
|
-
{a: [0, 0], b: [2, 10], c: "x", f: null, t: null},
|
252
|
-
{a: [1, 5], b: [2, 5], c: "", f: [0, 5], t: [1, 5]},
|
253
|
-
{a: [2, 0], b: [2, 3], c: "", f: [0, 5], t: [2, 2]},
|
254
|
-
{a: [2, 5], b: [3, 0], c: "a\nb", f: [0, 5], t: [2, 5]},
|
255
|
-
{a: [2, 3], b: [3, 0], c: "x", f: [0, 5], t: [2, 4]},
|
256
|
-
{a: [1, 1], b: [1, 9], c: "1\n2\n3", f: [0, 5], t: [4, 5]}], function(test) {
|
257
|
-
cm.setValue("aaaaaaaaaa\nbbbbbbbbbb\ncccccccccc\ndddddddd\n");
|
258
|
-
var r = cm.markText({line: 0, ch: 5}, {line: 2, ch: 5}, "foo");
|
259
|
-
cm.replaceRange(test.c, p(test.a), p(test.b));
|
260
|
-
var f = r.find();
|
261
|
-
eqPos(f.from, p(test.f)); eqPos(f.to, p(test.t));
|
262
|
-
});
|
263
|
-
});
|
264
|
-
|
265
|
-
testCM("bookmark", function(cm) {
|
266
|
-
function p(v) { return v && {line: v[0], ch: v[1]}; }
|
267
|
-
forEach([{a: [1, 0], b: [1, 1], c: "", d: [1, 4]},
|
268
|
-
{a: [1, 1], b: [1, 1], c: "xx", d: [1, 7]},
|
269
|
-
{a: [1, 4], b: [1, 5], c: "ab", d: [1, 6]},
|
270
|
-
{a: [1, 4], b: [1, 6], c: "", d: null},
|
271
|
-
{a: [1, 5], b: [1, 6], c: "abc", d: [1, 5]},
|
272
|
-
{a: [1, 6], b: [1, 8], c: "", d: [1, 5]},
|
273
|
-
{a: [1, 4], b: [1, 4], c: "\n\n", d: [3, 1]},
|
274
|
-
{bm: [1, 9], a: [1, 1], b: [1, 1], c: "\n", d: [2, 8]}], function(test) {
|
275
|
-
cm.setValue("1234567890\n1234567890\n1234567890");
|
276
|
-
var b = cm.setBookmark(p(test.bm) || {line: 1, ch: 5});
|
277
|
-
cm.replaceRange(test.c, p(test.a), p(test.b));
|
278
|
-
eqPos(b.find(), p(test.d));
|
279
|
-
});
|
280
|
-
});
|
281
|
-
|
282
|
-
testCM("bug577", function(cm) {
|
283
|
-
cm.setValue("a\nb");
|
284
|
-
cm.clearHistory();
|
285
|
-
cm.setValue("fooooo");
|
286
|
-
cm.undo();
|
287
|
-
});
|
288
|
-
|
289
|
-
// Scaffolding
|
290
|
-
|
291
|
-
function htmlEscape(str) {
|
292
|
-
return str.replace(/[<&]/g, function(str) {return str == "&" ? "&" : "<";});
|
293
|
-
}
|
294
|
-
function forEach(arr, f) {
|
295
|
-
for (var i = 0, e = arr.length; i < e; ++i) f(arr[i]);
|
296
|
-
}
|
297
|
-
|
298
|
-
function Failure(why) {this.message = why;}
|
299
|
-
|
300
|
-
function test(name, run) {tests.push({name: name, func: run});}
|
301
|
-
function testCM(name, run, opts) {
|
302
|
-
test(name, function() {
|
303
|
-
var place = document.getElementById("testground"), cm = CodeMirror(place, opts);
|
304
|
-
try {run(cm);}
|
305
|
-
finally {place.removeChild(cm.getWrapperElement());}
|
306
|
-
});
|
307
|
-
}
|
308
|
-
|
309
|
-
function runTests() {
|
310
|
-
var failures = [], run = 0;
|
311
|
-
for (var i = 0; i < tests.length; ++i) {
|
312
|
-
var test = tests[i];
|
313
|
-
try {test.func();}
|
314
|
-
catch(e) {
|
315
|
-
if (e instanceof Failure)
|
316
|
-
failures.push({type: "failure", test: test.name, text: e.message});
|
317
|
-
else
|
318
|
-
failures.push({type: "error", test: test.name, text: e.toString()});
|
319
|
-
}
|
320
|
-
run++;
|
321
|
-
}
|
322
|
-
var html = [run + " tests run."];
|
323
|
-
if (failures.length)
|
324
|
-
forEach(failures, function(fail) {
|
325
|
-
html.push(fail.test + ': <span class="' + fail.type + '">' + htmlEscape(fail.text) + "</span>");
|
326
|
-
});
|
327
|
-
else html.push('<span class="ok">All passed.</span>');
|
328
|
-
document.getElementById("output").innerHTML = html.join("\n");
|
329
|
-
}
|
330
|
-
|
331
|
-
function eq(a, b, msg) {
|
332
|
-
if (a != b) throw new Failure(a + " != " + b + (msg ? " (" + msg + ")" : ""));
|
333
|
-
}
|
334
|
-
function eqPos(a, b, msg) {
|
335
|
-
if (a == b) return;
|
336
|
-
if (a == null || b == null) throw new Failure("comparing point to null");
|
337
|
-
eq(a.line, b.line, msg);
|
338
|
-
eq(a.ch, b.ch, msg);
|
339
|
-
}
|
340
|
-
function is(a, msg) {
|
341
|
-
if (!a) throw new Failure("assertion failed" + (msg ? " (" + msg + ")" : ""));
|
342
|
-
}
|
343
|
-
|
344
|
-
window.onload = runTests;
|