extjs-rails 4.1.0.alpha5 → 4.1.0.alpha6
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/extjs-rails.js +95613 -11000
- data/lib/extjs-rails/version.rb +1 -1
- metadata +2 -509
- data/app/assets/javascripts/src/AbstractComponent.js +0 -3290
- data/app/assets/javascripts/src/AbstractManager.js +0 -144
- data/app/assets/javascripts/src/AbstractPlugin.js +0 -72
- data/app/assets/javascripts/src/Action.js +0 -276
- data/app/assets/javascripts/src/Ajax.js +0 -99
- data/app/assets/javascripts/src/Component.js +0 -1344
- data/app/assets/javascripts/src/ComponentLoader.js +0 -202
- data/app/assets/javascripts/src/ComponentManager.js +0 -47
- data/app/assets/javascripts/src/ComponentQuery.js +0 -521
- data/app/assets/javascripts/src/Editor.js +0 -494
- data/app/assets/javascripts/src/ElementLoader.js +0 -404
- data/app/assets/javascripts/src/FocusManager.js +0 -712
- data/app/assets/javascripts/src/Img.js +0 -111
- data/app/assets/javascripts/src/Layer.js +0 -543
- data/app/assets/javascripts/src/LoadMask.js +0 -432
- data/app/assets/javascripts/src/ModelManager.js +0 -186
- data/app/assets/javascripts/src/PluginManager.js +0 -110
- data/app/assets/javascripts/src/ProgressBar.js +0 -336
- data/app/assets/javascripts/src/Shadow.js +0 -233
- data/app/assets/javascripts/src/ShadowPool.js +0 -43
- data/app/assets/javascripts/src/Template.js +0 -331
- data/app/assets/javascripts/src/XTemplate.js +0 -365
- data/app/assets/javascripts/src/XTemplateCompiler.js +0 -450
- data/app/assets/javascripts/src/XTemplateParser.js +0 -249
- data/app/assets/javascripts/src/ZIndexManager.js +0 -519
- data/app/assets/javascripts/src/app/Application.js +0 -271
- data/app/assets/javascripts/src/app/Controller.js +0 -458
- data/app/assets/javascripts/src/app/EventBus.js +0 -112
- data/app/assets/javascripts/src/button/Button.js +0 -1483
- data/app/assets/javascripts/src/button/Cycle.js +0 -215
- data/app/assets/javascripts/src/button/Split.js +0 -99
- data/app/assets/javascripts/src/chart/Callout.js +0 -140
- data/app/assets/javascripts/src/chart/Chart.js +0 -966
- data/app/assets/javascripts/src/chart/Highlight.js +0 -172
- data/app/assets/javascripts/src/chart/Label.js +0 -241
- data/app/assets/javascripts/src/chart/Legend.js +0 -474
- data/app/assets/javascripts/src/chart/LegendItem.js +0 -217
- data/app/assets/javascripts/src/chart/Mask.js +0 -230
- data/app/assets/javascripts/src/chart/MaskLayer.js +0 -48
- data/app/assets/javascripts/src/chart/Navigation.js +0 -79
- data/app/assets/javascripts/src/chart/Shape.js +0 -106
- data/app/assets/javascripts/src/chart/Tip.js +0 -98
- data/app/assets/javascripts/src/chart/TipSurface.js +0 -42
- data/app/assets/javascripts/src/chart/axis/Abstract.js +0 -73
- data/app/assets/javascripts/src/chart/axis/Axis.js +0 -961
- data/app/assets/javascripts/src/chart/axis/Category.js +0 -130
- data/app/assets/javascripts/src/chart/axis/Gauge.js +0 -203
- data/app/assets/javascripts/src/chart/axis/Numeric.js +0 -235
- data/app/assets/javascripts/src/chart/axis/Radial.js +0 -204
- data/app/assets/javascripts/src/chart/axis/Time.js +0 -135
- data/app/assets/javascripts/src/chart/series/Area.js +0 -803
- data/app/assets/javascripts/src/chart/series/Bar.js +0 -853
- data/app/assets/javascripts/src/chart/series/Cartesian.js +0 -328
- data/app/assets/javascripts/src/chart/series/Column.js +0 -104
- data/app/assets/javascripts/src/chart/series/Gauge.js +0 -490
- data/app/assets/javascripts/src/chart/series/Line.js +0 -1104
- data/app/assets/javascripts/src/chart/series/Pie.js +0 -1072
- data/app/assets/javascripts/src/chart/series/Radar.js +0 -440
- data/app/assets/javascripts/src/chart/series/Scatter.js +0 -668
- data/app/assets/javascripts/src/chart/series/Series.js +0 -443
- data/app/assets/javascripts/src/chart/theme/Base.js +0 -175
- data/app/assets/javascripts/src/chart/theme/Theme.js +0 -253
- data/app/assets/javascripts/src/container/AbstractContainer.js +0 -1062
- data/app/assets/javascripts/src/container/ButtonGroup.js +0 -143
- data/app/assets/javascripts/src/container/Container.js +0 -212
- data/app/assets/javascripts/src/container/DockingContainer.js +0 -265
- data/app/assets/javascripts/src/container/Viewport.js +0 -184
- data/app/assets/javascripts/src/core/dom/Element.form.js +0 -50
- data/app/assets/javascripts/src/core/dom/Element.static-more.js +0 -159
- data/app/assets/javascripts/src/core/examples/index.html +0 -321
- data/app/assets/javascripts/src/core/examples/index.js +0 -6
- data/app/assets/javascripts/src/core/examples/src/Sample/CTO.js +0 -25
- data/app/assets/javascripts/src/core/examples/src/Sample/CoolGuy.js +0 -20
- data/app/assets/javascripts/src/core/examples/src/Sample/Developer.js +0 -43
- data/app/assets/javascripts/src/core/examples/src/Sample/Gun.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/HumanResource.js +0 -23
- data/app/assets/javascripts/src/core/examples/src/Sample/Musician.js +0 -20
- data/app/assets/javascripts/src/core/examples/src/Sample/Person.js +0 -50
- data/app/assets/javascripts/src/core/examples/src/Sample/ability/CanComposeSongs.js +0 -9
- data/app/assets/javascripts/src/core/examples/src/Sample/ability/CanPlayGuitar.js +0 -9
- data/app/assets/javascripts/src/core/examples/src/Sample/ability/CanSing.js +0 -18
- data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/A.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/B.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/C.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/D.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/E.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/notdeadlock/A.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/notdeadlock/B.js +0 -4
- data/app/assets/javascripts/src/core/examples/src/Sample/notdeadlock/C.js +0 -3
- data/app/assets/javascripts/src/core/src/EventManager.js +0 -1167
- data/app/assets/javascripts/src/core/src/EventObject.js +0 -883
- data/app/assets/javascripts/src/core/src/Ext-more.js +0 -1283
- data/app/assets/javascripts/src/core/src/Ext.js +0 -736
- data/app/assets/javascripts/src/core/src/Support.js +0 -662
- data/app/assets/javascripts/src/core/src/class/Base.js +0 -1085
- data/app/assets/javascripts/src/core/src/class/Class.js +0 -676
- data/app/assets/javascripts/src/core/src/class/ClassManager.js +0 -1591
- data/app/assets/javascripts/src/core/src/class/Loader.js +0 -1423
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.alignment.js +0 -173
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.insertion.js +0 -193
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.js +0 -681
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.position.js +0 -356
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.static.js +0 -474
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.style.js +0 -851
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.traversal.js +0 -180
- data/app/assets/javascripts/src/core/src/dom/AbstractHelper.js +0 -291
- data/app/assets/javascripts/src/core/src/dom/AbstractQuery.js +0 -72
- data/app/assets/javascripts/src/core/src/dom/CompositeElement.js +0 -75
- data/app/assets/javascripts/src/core/src/dom/CompositeElementLite.js +0 -436
- data/app/assets/javascripts/src/core/src/dom/DomQuery-aria.js +0 -1049
- data/app/assets/javascripts/src/core/src/env/Browser.js +0 -186
- data/app/assets/javascripts/src/core/src/env/FeatureDetector.js +0 -274
- data/app/assets/javascripts/src/core/src/env/OS.js +0 -141
- data/app/assets/javascripts/src/core/src/lang/Array.js +0 -1205
- data/app/assets/javascripts/src/core/src/lang/Date.js +0 -1463
- data/app/assets/javascripts/src/core/src/lang/Error.js +0 -326
- data/app/assets/javascripts/src/core/src/lang/Function.js +0 -485
- data/app/assets/javascripts/src/core/src/lang/Number.js +0 -175
- data/app/assets/javascripts/src/core/src/lang/Object.js +0 -606
- data/app/assets/javascripts/src/core/src/lang/String.js +0 -333
- data/app/assets/javascripts/src/core/src/misc/JSON.js +0 -236
- data/app/assets/javascripts/src/core/src/perf/Accumulator.js +0 -244
- data/app/assets/javascripts/src/core/src/perf/Monitor.js +0 -197
- data/app/assets/javascripts/src/core/src/util/DelayedTask.js +0 -71
- data/app/assets/javascripts/src/core/src/util/Event.js +0 -215
- data/app/assets/javascripts/src/core/src/util/Format.js +0 -551
- data/app/assets/javascripts/src/core/src/util/TaskManager.js +0 -417
- data/app/assets/javascripts/src/core/src/version/Version.js +0 -364
- data/app/assets/javascripts/src/core/test/unit/README.MD +0 -91
- data/app/assets/javascripts/src/core/test/unit/bootstrap.js +0 -39
- data/app/assets/javascripts/src/core/test/unit/build/build-data.js +0 -34
- data/app/assets/javascripts/src/core/test/unit/build/build.sh +0 -2
- data/app/assets/javascripts/src/core/test/unit/data.js +0 -27
- data/app/assets/javascripts/src/core/test/unit/index.html +0 -15
- data/app/assets/javascripts/src/core/test/unit/other_specs/dom.html +0 -40
- data/app/assets/javascripts/src/core/test/unit/other_specs/dom/extjs-api.js +0 -12
- data/app/assets/javascripts/src/core/test/unit/other_specs/dom/platform-api.js +0 -134
- data/app/assets/javascripts/src/core/test/unit/other_specs/dom/sanity.js +0 -4
- data/app/assets/javascripts/src/core/test/unit/other_specs/dom/touch-api-out.js +0 -128
- data/app/assets/javascripts/src/core/test/unit/other_specs/dom/touch-api.js +0 -89
- data/app/assets/javascripts/src/core/test/unit/other_specs/env/Environment.js +0 -357
- data/app/assets/javascripts/src/core/test/unit/resources/APITest.js +0 -37
- data/app/assets/javascripts/src/core/test/unit/resources/jsb3.js +0 -14
- data/app/assets/javascripts/src/core/test/unit/resources/test-setup.js +0 -137
- data/app/assets/javascripts/src/core/test/unit/spec/EventManager.js +0 -629
- data/app/assets/javascripts/src/core/test/unit/spec/Ext-mess.backup +0 -198
- data/app/assets/javascripts/src/core/test/unit/spec/Ext-more.js +0 -520
- data/app/assets/javascripts/src/core/test/unit/spec/Ext.js +0 -1550
- data/app/assets/javascripts/src/core/test/unit/spec/Support.js +0 -250
- data/app/assets/javascripts/src/core/test/unit/spec/class/Base.js +0 -47
- data/app/assets/javascripts/src/core/test/unit/spec/class/Class.js +0 -561
- data/app/assets/javascripts/src/core/test/unit/spec/class/ClassManager.js +0 -555
- data/app/assets/javascripts/src/core/test/unit/spec/dom/CompositeElementLite.js +0 -409
- data/app/assets/javascripts/src/core/test/unit/spec/dom/DomHelper.js +0 -444
- data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.insertion.js +0 -342
- data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.js +0 -731
- data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.static.js +0 -201
- data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.style.js +0 -118
- data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.traversal.js +0 -336
- data/app/assets/javascripts/src/core/test/unit/spec/lang/Array.js +0 -1229
- data/app/assets/javascripts/src/core/test/unit/spec/lang/Date.js +0 -697
- data/app/assets/javascripts/src/core/test/unit/spec/lang/Error.js +0 -277
- data/app/assets/javascripts/src/core/test/unit/spec/lang/Function.js +0 -536
- data/app/assets/javascripts/src/core/test/unit/spec/lang/Number.js +0 -323
- data/app/assets/javascripts/src/core/test/unit/spec/lang/Object.js +0 -591
- data/app/assets/javascripts/src/core/test/unit/spec/lang/String.js +0 -451
- data/app/assets/javascripts/src/core/test/unit/spec/misc/JSON.js +0 -252
- data/app/assets/javascripts/src/core/test/unit/spec/util/Format.js +0 -521
- data/app/assets/javascripts/src/core/test/unit/spec/version/Version.js +0 -148
- data/app/assets/javascripts/src/core/test/unit/specs.html +0 -19
- data/app/assets/javascripts/src/data/AbstractStore.js +0 -887
- data/app/assets/javascripts/src/data/ArrayStore.js +0 -74
- data/app/assets/javascripts/src/data/Batch.js +0 -236
- data/app/assets/javascripts/src/data/BufferStore.js +0 -13
- data/app/assets/javascripts/src/data/Connection.js +0 -969
- data/app/assets/javascripts/src/data/DirectStore.js +0 -50
- data/app/assets/javascripts/src/data/Errors.js +0 -52
- data/app/assets/javascripts/src/data/Field.js +0 -341
- data/app/assets/javascripts/src/data/IdGenerator.js +0 -198
- data/app/assets/javascripts/src/data/JsonP.js +0 -253
- data/app/assets/javascripts/src/data/JsonPStore.js +0 -51
- data/app/assets/javascripts/src/data/JsonStore.js +0 -60
- data/app/assets/javascripts/src/data/Model.js +0 -1673
- data/app/assets/javascripts/src/data/NodeInterface.js +0 -1294
- data/app/assets/javascripts/src/data/NodeStore.js +0 -254
- data/app/assets/javascripts/src/data/Operation.js +0 -331
- data/app/assets/javascripts/src/data/Request.js +0 -40
- data/app/assets/javascripts/src/data/ResultSet.js +0 -56
- data/app/assets/javascripts/src/data/SequentialIdGenerator.js +0 -61
- data/app/assets/javascripts/src/data/SortTypes.js +0 -125
- data/app/assets/javascripts/src/data/Store.js +0 -2609
- data/app/assets/javascripts/src/data/StoreManager.js +0 -156
- data/app/assets/javascripts/src/data/Tree.js +0 -290
- data/app/assets/javascripts/src/data/TreeStore.js +0 -655
- data/app/assets/javascripts/src/data/Types.js +0 -190
- data/app/assets/javascripts/src/data/UuidGenerator.js +0 -215
- data/app/assets/javascripts/src/data/XmlStore.js +0 -76
- data/app/assets/javascripts/src/data/association/Association.js +0 -243
- data/app/assets/javascripts/src/data/association/BelongsTo.js +0 -291
- data/app/assets/javascripts/src/data/association/HasMany.js +0 -289
- data/app/assets/javascripts/src/data/association/HasOne.js +0 -304
- data/app/assets/javascripts/src/data/proxy/Ajax.js +0 -282
- data/app/assets/javascripts/src/data/proxy/Client.js +0 -21
- data/app/assets/javascripts/src/data/proxy/Direct.js +0 -181
- data/app/assets/javascripts/src/data/proxy/JsonP.js +0 -313
- data/app/assets/javascripts/src/data/proxy/LocalStorage.js +0 -69
- data/app/assets/javascripts/src/data/proxy/Memory.js +0 -156
- data/app/assets/javascripts/src/data/proxy/Proxy.js +0 -433
- data/app/assets/javascripts/src/data/proxy/Rest.js +0 -173
- data/app/assets/javascripts/src/data/proxy/Server.js +0 -460
- data/app/assets/javascripts/src/data/proxy/SessionStorage.js +0 -39
- data/app/assets/javascripts/src/data/proxy/WebStorage.js +0 -546
- data/app/assets/javascripts/src/data/reader/Array.js +0 -68
- data/app/assets/javascripts/src/data/reader/Json.js +0 -383
- data/app/assets/javascripts/src/data/reader/Reader.js +0 -735
- data/app/assets/javascripts/src/data/reader/Xml.js +0 -292
- data/app/assets/javascripts/src/data/validations.js +0 -149
- data/app/assets/javascripts/src/data/writer/Json.js +0 -81
- data/app/assets/javascripts/src/data/writer/Writer.js +0 -147
- data/app/assets/javascripts/src/data/writer/Xml.js +0 -88
- data/app/assets/javascripts/src/dd/DD.js +0 -300
- data/app/assets/javascripts/src/dd/DDProxy.js +0 -204
- data/app/assets/javascripts/src/dd/DDTarget.js +0 -171
- data/app/assets/javascripts/src/dd/DragDrop.js +0 -1101
- data/app/assets/javascripts/src/dd/DragDropManager.js +0 -1264
- data/app/assets/javascripts/src/dd/DragSource.js +0 -392
- data/app/assets/javascripts/src/dd/DragTracker.js +0 -562
- data/app/assets/javascripts/src/dd/DragZone.js +0 -137
- data/app/assets/javascripts/src/dd/DropTarget.js +0 -118
- data/app/assets/javascripts/src/dd/DropZone.js +0 -254
- data/app/assets/javascripts/src/dd/Registry.js +0 -117
- data/app/assets/javascripts/src/dd/ScrollManager.js +0 -218
- data/app/assets/javascripts/src/dd/StatusProxy.js +0 -179
- data/app/assets/javascripts/src/diag/layout/Context.js +0 -523
- data/app/assets/javascripts/src/diag/layout/ContextItem.js +0 -179
- data/app/assets/javascripts/src/direct/Event.js +0 -35
- data/app/assets/javascripts/src/direct/ExceptionEvent.js +0 -16
- data/app/assets/javascripts/src/direct/JsonProvider.js +0 -82
- data/app/assets/javascripts/src/direct/Manager.js +0 -263
- data/app/assets/javascripts/src/direct/PollingProvider.js +0 -156
- data/app/assets/javascripts/src/direct/Provider.js +0 -96
- data/app/assets/javascripts/src/direct/RemotingEvent.js +0 -24
- data/app/assets/javascripts/src/direct/RemotingMethod.js +0 -100
- data/app/assets/javascripts/src/direct/RemotingProvider.js +0 -510
- data/app/assets/javascripts/src/direct/Transaction.js +0 -41
- data/app/assets/javascripts/src/dom/Element.alignment.js +0 -378
- data/app/assets/javascripts/src/dom/Element.anim.js +0 -962
- data/app/assets/javascripts/src/dom/Element.dd.js +0 -40
- data/app/assets/javascripts/src/dom/Element.fx.js +0 -194
- data/app/assets/javascripts/src/dom/Element.js +0 -1407
- data/app/assets/javascripts/src/dom/Element.position.js +0 -501
- data/app/assets/javascripts/src/dom/Element.scroll.js +0 -214
- data/app/assets/javascripts/src/dom/Element.style.js +0 -792
- data/app/assets/javascripts/src/dom/Element.traversal.js +0 -8
- data/app/assets/javascripts/src/dom/Helper.js +0 -466
- data/app/assets/javascripts/src/dom/Query.js +0 -1067
- data/app/assets/javascripts/src/draw/Color.js +0 -303
- data/app/assets/javascripts/src/draw/Component.js +0 -245
- data/app/assets/javascripts/src/draw/CompositeSprite.js +0 -299
- data/app/assets/javascripts/src/draw/Draw.js +0 -1217
- data/app/assets/javascripts/src/draw/Matrix.js +0 -183
- data/app/assets/javascripts/src/draw/Sprite.js +0 -554
- data/app/assets/javascripts/src/draw/SpriteDD.js +0 -87
- data/app/assets/javascripts/src/draw/Surface.js +0 -1001
- data/app/assets/javascripts/src/draw/Text.js +0 -175
- data/app/assets/javascripts/src/draw/engine/ImageExporter.js +0 -106
- data/app/assets/javascripts/src/draw/engine/Svg.js +0 -734
- data/app/assets/javascripts/src/draw/engine/SvgExporter.js +0 -280
- data/app/assets/javascripts/src/draw/engine/Vml.js +0 -916
- data/app/assets/javascripts/src/flash/Component.js +0 -248
- data/app/assets/javascripts/src/form/Basic.js +0 -1018
- data/app/assets/javascripts/src/form/CheckboxGroup.js +0 -441
- data/app/assets/javascripts/src/form/CheckboxManager.js +0 -26
- data/app/assets/javascripts/src/form/FieldAncestor.js +0 -210
- data/app/assets/javascripts/src/form/FieldContainer.js +0 -290
- data/app/assets/javascripts/src/form/FieldSet.js +0 -506
- data/app/assets/javascripts/src/form/Label.js +0 -110
- data/app/assets/javascripts/src/form/Labelable.js +0 -764
- data/app/assets/javascripts/src/form/Panel.js +0 -335
- data/app/assets/javascripts/src/form/RadioGroup.js +0 -124
- data/app/assets/javascripts/src/form/RadioManager.js +0 -26
- data/app/assets/javascripts/src/form/action/Action.js +0 -307
- data/app/assets/javascripts/src/form/action/DirectLoad.js +0 -107
- data/app/assets/javascripts/src/form/action/DirectSubmit.js +0 -119
- data/app/assets/javascripts/src/form/action/Load.js +0 -120
- data/app/assets/javascripts/src/form/action/StandardSubmit.js +0 -34
- data/app/assets/javascripts/src/form/action/Submit.js +0 -257
- data/app/assets/javascripts/src/form/field/Base.js +0 -813
- data/app/assets/javascripts/src/form/field/Checkbox.js +0 -505
- data/app/assets/javascripts/src/form/field/ComboBox.js +0 -1427
- data/app/assets/javascripts/src/form/field/Date.js +0 -578
- data/app/assets/javascripts/src/form/field/Display.js +0 -155
- data/app/assets/javascripts/src/form/field/Field.js +0 -430
- data/app/assets/javascripts/src/form/field/File.js +0 -265
- data/app/assets/javascripts/src/form/field/Hidden.js +0 -75
- data/app/assets/javascripts/src/form/field/HtmlEditor.js +0 -1439
- data/app/assets/javascripts/src/form/field/Number.js +0 -380
- data/app/assets/javascripts/src/form/field/Picker.js +0 -321
- data/app/assets/javascripts/src/form/field/Radio.js +0 -279
- data/app/assets/javascripts/src/form/field/Spinner.js +0 -321
- data/app/assets/javascripts/src/form/field/Text.js +0 -727
- data/app/assets/javascripts/src/form/field/TextArea.js +0 -228
- data/app/assets/javascripts/src/form/field/Time.js +0 -459
- data/app/assets/javascripts/src/form/field/Trigger.js +0 -469
- data/app/assets/javascripts/src/form/field/VTypes.js +0 -172
- data/app/assets/javascripts/src/fx/Anim.js +0 -472
- data/app/assets/javascripts/src/fx/Animator.js +0 -410
- data/app/assets/javascripts/src/fx/CubicBezier.js +0 -77
- data/app/assets/javascripts/src/fx/Easing.js +0 -136
- data/app/assets/javascripts/src/fx/Manager.js +0 -353
- data/app/assets/javascripts/src/fx/PropertyHandler.js +0 -381
- data/app/assets/javascripts/src/fx/Queue.js +0 -123
- data/app/assets/javascripts/src/fx/target/Component.js +0 -118
- data/app/assets/javascripts/src/fx/target/CompositeElement.js +0 -46
- data/app/assets/javascripts/src/fx/target/CompositeElementCSS.js +0 -22
- data/app/assets/javascripts/src/fx/target/CompositeSprite.js +0 -34
- data/app/assets/javascripts/src/fx/target/Element.js +0 -83
- data/app/assets/javascripts/src/fx/target/ElementCSS.js +0 -77
- data/app/assets/javascripts/src/fx/target/Sprite.js +0 -128
- data/app/assets/javascripts/src/fx/target/Target.js +0 -36
- data/app/assets/javascripts/src/grid/CellEditor.js +0 -172
- data/app/assets/javascripts/src/grid/ColumnComponentLayout.js +0 -34
- data/app/assets/javascripts/src/grid/ColumnLayout.js +0 -201
- data/app/assets/javascripts/src/grid/Lockable.js +0 -863
- data/app/assets/javascripts/src/grid/LockingView.js +0 -169
- data/app/assets/javascripts/src/grid/PagingScroller.js +0 -539
- data/app/assets/javascripts/src/grid/Panel.js +0 -393
- data/app/assets/javascripts/src/grid/RowEditor.js +0 -731
- data/app/assets/javascripts/src/grid/RowNumberer.js +0 -76
- data/app/assets/javascripts/src/grid/Scroller.js +0 -5
- data/app/assets/javascripts/src/grid/View.js +0 -44
- data/app/assets/javascripts/src/grid/ViewDropZone.js +0 -41
- data/app/assets/javascripts/src/grid/column/Action.js +0 -318
- data/app/assets/javascripts/src/grid/column/Boolean.js +0 -82
- data/app/assets/javascripts/src/grid/column/Column.js +0 -835
- data/app/assets/javascripts/src/grid/column/Date.js +0 -63
- data/app/assets/javascripts/src/grid/column/Number.js +0 -52
- data/app/assets/javascripts/src/grid/column/Template.js +0 -58
- data/app/assets/javascripts/src/grid/feature/AbstractSummary.js +0 -154
- data/app/assets/javascripts/src/grid/feature/Chunking.js +0 -77
- data/app/assets/javascripts/src/grid/feature/Feature.js +0 -158
- data/app/assets/javascripts/src/grid/feature/Grouping.js +0 -822
- data/app/assets/javascripts/src/grid/feature/GroupingSummary.js +0 -243
- data/app/assets/javascripts/src/grid/feature/RowBody.js +0 -116
- data/app/assets/javascripts/src/grid/feature/RowWrap.js +0 -120
- data/app/assets/javascripts/src/grid/feature/Summary.js +0 -167
- data/app/assets/javascripts/src/grid/header/Container.js +0 -965
- data/app/assets/javascripts/src/grid/header/DragZone.js +0 -69
- data/app/assets/javascripts/src/grid/header/DropZone.js +0 -265
- data/app/assets/javascripts/src/grid/plugin/CellEditing.js +0 -453
- data/app/assets/javascripts/src/grid/plugin/DragDrop.js +0 -254
- data/app/assets/javascripts/src/grid/plugin/Editing.js +0 -561
- data/app/assets/javascripts/src/grid/plugin/HeaderReorderer.js +0 -49
- data/app/assets/javascripts/src/grid/plugin/HeaderResizer.js +0 -292
- data/app/assets/javascripts/src/grid/plugin/RowEditing.js +0 -339
- data/app/assets/javascripts/src/grid/property/Grid.js +0 -351
- data/app/assets/javascripts/src/grid/property/HeaderContainer.js +0 -109
- data/app/assets/javascripts/src/grid/property/Property.js +0 -36
- data/app/assets/javascripts/src/grid/property/Store.js +0 -141
- data/app/assets/javascripts/src/layout/ClassList.js +0 -90
- data/app/assets/javascripts/src/layout/Context.js +0 -1232
- data/app/assets/javascripts/src/layout/ContextItem.js +0 -1470
- data/app/assets/javascripts/src/layout/Layout.js +0 -761
- data/app/assets/javascripts/src/layout/component/Auto.js +0 -220
- data/app/assets/javascripts/src/layout/component/Body.js +0 -80
- data/app/assets/javascripts/src/layout/component/BoundList.js +0 -95
- data/app/assets/javascripts/src/layout/component/Button.js +0 -261
- data/app/assets/javascripts/src/layout/component/Component.js +0 -427
- data/app/assets/javascripts/src/layout/component/Dock.js +0 -1132
- data/app/assets/javascripts/src/layout/component/Draw.js +0 -79
- data/app/assets/javascripts/src/layout/component/FieldSet.js +0 -62
- data/app/assets/javascripts/src/layout/component/ProgressBar.js +0 -54
- data/app/assets/javascripts/src/layout/component/Tab.js +0 -23
- data/app/assets/javascripts/src/layout/component/field/ComboBox.js +0 -52
- data/app/assets/javascripts/src/layout/component/field/Field.js +0 -372
- data/app/assets/javascripts/src/layout/component/field/FieldContainer.js +0 -48
- data/app/assets/javascripts/src/layout/component/field/HtmlEditor.js +0 -54
- data/app/assets/javascripts/src/layout/component/field/Slider.js +0 -58
- data/app/assets/javascripts/src/layout/component/field/Text.js +0 -75
- data/app/assets/javascripts/src/layout/component/field/TextArea.js +0 -51
- data/app/assets/javascripts/src/layout/component/field/Trigger.js +0 -132
- data/app/assets/javascripts/src/layout/container/Absolute.js +0 -121
- data/app/assets/javascripts/src/layout/container/Accordion.js +0 -308
- data/app/assets/javascripts/src/layout/container/Anchor.js +0 -403
- data/app/assets/javascripts/src/layout/container/Auto.js +0 -70
- data/app/assets/javascripts/src/layout/container/Border-old-js +0 -1079
- data/app/assets/javascripts/src/layout/container/Border.js +0 -816
- data/app/assets/javascripts/src/layout/container/Box.js +0 -929
- data/app/assets/javascripts/src/layout/container/Card.js +0 -361
- data/app/assets/javascripts/src/layout/container/CheckboxGroup.js +0 -376
- data/app/assets/javascripts/src/layout/container/Column.js +0 -234
- data/app/assets/javascripts/src/layout/container/Container.js +0 -961
- data/app/assets/javascripts/src/layout/container/Editor.js +0 -74
- data/app/assets/javascripts/src/layout/container/Fit.js +0 -287
- data/app/assets/javascripts/src/layout/container/Form.js +0 -157
- data/app/assets/javascripts/src/layout/container/HBox.js +0 -134
- data/app/assets/javascripts/src/layout/container/Table.js +0 -412
- data/app/assets/javascripts/src/layout/container/VBox.js +0 -139
- data/app/assets/javascripts/src/layout/container/boxOverflow/Menu.js +0 -365
- data/app/assets/javascripts/src/layout/container/boxOverflow/None.js +0 -83
- data/app/assets/javascripts/src/layout/container/boxOverflow/Scroller.js +0 -475
- data/app/assets/javascripts/src/menu/CheckItem.js +0 -169
- data/app/assets/javascripts/src/menu/ColorPicker.js +0 -110
- data/app/assets/javascripts/src/menu/DatePicker.js +0 -100
- data/app/assets/javascripts/src/menu/Item.js +0 -553
- data/app/assets/javascripts/src/menu/KeyNav.js +0 -134
- data/app/assets/javascripts/src/menu/Manager.js +0 -219
- data/app/assets/javascripts/src/menu/Menu.js +0 -579
- data/app/assets/javascripts/src/menu/Separator.js +0 -126
- data/app/assets/javascripts/src/panel/AbstractPanel.js +0 -323
- data/app/assets/javascripts/src/panel/DD.js +0 -99
- data/app/assets/javascripts/src/panel/Header.js +0 -518
- data/app/assets/javascripts/src/panel/Panel.js +0 -2150
- data/app/assets/javascripts/src/panel/Proxy.js +0 -131
- data/app/assets/javascripts/src/panel/Table.js +0 -1018
- data/app/assets/javascripts/src/panel/Tool.js +0 -304
- data/app/assets/javascripts/src/picker/Color.js +0 -219
- data/app/assets/javascripts/src/picker/Date.js +0 -1140
- data/app/assets/javascripts/src/picker/Month.js +0 -490
- data/app/assets/javascripts/src/picker/Time.js +0 -165
- data/app/assets/javascripts/src/resizer/BorderSplitter.js +0 -22
- data/app/assets/javascripts/src/resizer/BorderSplitterTracker.js +0 -210
- data/app/assets/javascripts/src/resizer/Handle.js +0 -29
- data/app/assets/javascripts/src/resizer/ResizeTracker.js +0 -346
- data/app/assets/javascripts/src/resizer/Resizer.js +0 -477
- data/app/assets/javascripts/src/resizer/Splitter.js +0 -242
- data/app/assets/javascripts/src/resizer/SplitterTracker.js +0 -230
- data/app/assets/javascripts/src/selection/CellModel.js +0 -395
- data/app/assets/javascripts/src/selection/CheckboxModel.js +0 -234
- data/app/assets/javascripts/src/selection/DataViewModel.js +0 -160
- data/app/assets/javascripts/src/selection/Model.js +0 -646
- data/app/assets/javascripts/src/selection/RowModel.js +0 -499
- data/app/assets/javascripts/src/selection/TreeModel.js +0 -78
- data/app/assets/javascripts/src/slider/Multi.js +0 -835
- data/app/assets/javascripts/src/slider/Single.js +0 -56
- data/app/assets/javascripts/src/slider/Thumb.js +0 -259
- data/app/assets/javascripts/src/slider/Tip.js +0 -130
- data/app/assets/javascripts/src/state/CookieProvider.js +0 -120
- data/app/assets/javascripts/src/state/LocalStorageProvider.js +0 -72
- data/app/assets/javascripts/src/state/Manager.js +0 -70
- data/app/assets/javascripts/src/state/Provider.js +0 -182
- data/app/assets/javascripts/src/state/Stateful.js +0 -364
- data/app/assets/javascripts/src/tab/Bar.js +0 -258
- data/app/assets/javascripts/src/tab/Panel.js +0 -654
- data/app/assets/javascripts/src/tab/Tab.js +0 -358
- data/app/assets/javascripts/src/tail.js +0 -10
- data/app/assets/javascripts/src/tip/QuickTip.js +0 -335
- data/app/assets/javascripts/src/tip/QuickTipManager.js +0 -239
- data/app/assets/javascripts/src/tip/Tip.js +0 -160
- data/app/assets/javascripts/src/tip/ToolTip.js +0 -691
- data/app/assets/javascripts/src/toolbar/Fill.js +0 -28
- data/app/assets/javascripts/src/toolbar/Item.js +0 -16
- data/app/assets/javascripts/src/toolbar/Paging.js +0 -600
- data/app/assets/javascripts/src/toolbar/Separator.js +0 -23
- data/app/assets/javascripts/src/toolbar/Spacer.js +0 -33
- data/app/assets/javascripts/src/toolbar/TextItem.js +0 -57
- data/app/assets/javascripts/src/toolbar/Toolbar-legacy.js +0 -123
- data/app/assets/javascripts/src/toolbar/Toolbar.js +0 -447
- data/app/assets/javascripts/src/tree/Column.js +0 -90
- data/app/assets/javascripts/src/tree/Panel.js +0 -505
- data/app/assets/javascripts/src/tree/View.js +0 -658
- data/app/assets/javascripts/src/tree/ViewDragZone.js +0 -49
- data/app/assets/javascripts/src/tree/ViewDropZone.js +0 -287
- data/app/assets/javascripts/src/tree/plugin/TreeViewDragDrop.js +0 -244
- data/app/assets/javascripts/src/util/AbstractMixedCollection.js +0 -772
- data/app/assets/javascripts/src/util/Animate.js +0 -426
- data/app/assets/javascripts/src/util/Bindable.js +0 -102
- data/app/assets/javascripts/src/util/CSS.js +0 -185
- data/app/assets/javascripts/src/util/ClickRepeater.js +0 -238
- data/app/assets/javascripts/src/util/ComponentDragger.js +0 -126
- data/app/assets/javascripts/src/util/Cookies.js +0 -91
- data/app/assets/javascripts/src/util/ElementContainer.js +0 -293
- data/app/assets/javascripts/src/util/Filter.js +0 -159
- data/app/assets/javascripts/src/util/Floating.js +0 -321
- data/app/assets/javascripts/src/util/Grouper.js +0 -26
- data/app/assets/javascripts/src/util/HashMap.js +0 -356
- data/app/assets/javascripts/src/util/History.js +0 -285
- data/app/assets/javascripts/src/util/Inflector.js +0 -297
- data/app/assets/javascripts/src/util/KeyMap.js +0 -427
- data/app/assets/javascripts/src/util/KeyNav.js +0 -239
- data/app/assets/javascripts/src/util/LruCache.js +0 -257
- data/app/assets/javascripts/src/util/Memento.js +0 -131
- data/app/assets/javascripts/src/util/MixedCollection.js +0 -239
- data/app/assets/javascripts/src/util/Observable.js +0 -1003
- data/app/assets/javascripts/src/util/Offset.js +0 -60
- data/app/assets/javascripts/src/util/Point.js +0 -93
- data/app/assets/javascripts/src/util/ProtoElement.js +0 -205
- data/app/assets/javascripts/src/util/Queue.js +0 -76
- data/app/assets/javascripts/src/util/Region.js +0 -388
- data/app/assets/javascripts/src/util/Renderable.js +0 -1079
- data/app/assets/javascripts/src/util/Sortable.js +0 -248
- data/app/assets/javascripts/src/util/Sorter.js +0 -179
- data/app/assets/javascripts/src/util/TextMetrics.js +0 -148
- data/app/assets/javascripts/src/view/AbstractView.js +0 -1103
- data/app/assets/javascripts/src/view/BoundList.js +0 -207
- data/app/assets/javascripts/src/view/BoundListKeyNav.js +0 -92
- data/app/assets/javascripts/src/view/DragZone.js +0 -106
- data/app/assets/javascripts/src/view/DropZone.js +0 -240
- data/app/assets/javascripts/src/view/Table.js +0 -1229
- data/app/assets/javascripts/src/view/TableChunker.js +0 -139
- data/app/assets/javascripts/src/view/View.js +0 -636
- data/app/assets/javascripts/src/window/MessageBox.js +0 -880
- data/app/assets/javascripts/src/window/Window-legacy.js +0 -56
- data/app/assets/javascripts/src/window/Window.js +0 -793
@@ -1,451 +0,0 @@
|
|
1
|
-
describe("Ext.String", function() {
|
2
|
-
|
3
|
-
describe("ellipsis", function() {
|
4
|
-
var shortString = "A short string",
|
5
|
-
longString = "A somewhat longer string";
|
6
|
-
|
7
|
-
it("should keep short strings intact", function() {
|
8
|
-
expect(Ext.String.ellipsis(shortString, 100)).toEqual(shortString);
|
9
|
-
});
|
10
|
-
|
11
|
-
it("should truncate a longer string", function() {
|
12
|
-
expect(Ext.String.ellipsis(longString, 10)).toEqual("A somew...");
|
13
|
-
});
|
14
|
-
|
15
|
-
describe("word break", function() {
|
16
|
-
var longStringWithDot = "www.sencha.com",
|
17
|
-
longStringWithExclamationMark = "Yeah!Yeah!Yeah!",
|
18
|
-
longStringWithQuestionMark = "Who?When?What?";
|
19
|
-
|
20
|
-
it("should find a word break on ' '", function() {
|
21
|
-
expect(Ext.String.ellipsis(longString, 10, true)).toEqual("A...");
|
22
|
-
});
|
23
|
-
|
24
|
-
it("should be able to break on '.'", function() {
|
25
|
-
expect(Ext.String.ellipsis(longStringWithDot, 9, true)).toEqual("www...");
|
26
|
-
});
|
27
|
-
|
28
|
-
it("should be able to break on '!'", function() {
|
29
|
-
expect(Ext.String.ellipsis(longStringWithExclamationMark, 9, true)).toEqual("Yeah...");
|
30
|
-
});
|
31
|
-
|
32
|
-
it("should be able to break on '?'", function() {
|
33
|
-
expect(Ext.String.ellipsis(longStringWithQuestionMark, 8, true)).toEqual("Who...");
|
34
|
-
});
|
35
|
-
});
|
36
|
-
});
|
37
|
-
|
38
|
-
describe("escapeRegex", function() {
|
39
|
-
var str;
|
40
|
-
|
41
|
-
it("should escape minus", function() {
|
42
|
-
str = "12 - 175";
|
43
|
-
expect(Ext.String.escapeRegex(str)).toEqual("12 \\- 175");
|
44
|
-
});
|
45
|
-
|
46
|
-
it("should escape dot", function() {
|
47
|
-
str = "Brian is in the kitchen.";
|
48
|
-
expect(Ext.String.escapeRegex(str)).toEqual("Brian is in the kitchen\\.");
|
49
|
-
});
|
50
|
-
|
51
|
-
it("should escape asterisk", function() {
|
52
|
-
str = "12 * 175";
|
53
|
-
expect(Ext.String.escapeRegex(str)).toEqual("12 \\* 175");
|
54
|
-
});
|
55
|
-
|
56
|
-
it("should escape plus", function() {
|
57
|
-
str = "12 + 175";
|
58
|
-
expect(Ext.String.escapeRegex(str)).toEqual("12 \\+ 175");
|
59
|
-
});
|
60
|
-
|
61
|
-
it("should escape question mark", function() {
|
62
|
-
str = "What else ?";
|
63
|
-
expect(Ext.String.escapeRegex(str)).toEqual("What else \\?");
|
64
|
-
});
|
65
|
-
|
66
|
-
it("should escape caret", function() {
|
67
|
-
str = "^^";
|
68
|
-
expect(Ext.String.escapeRegex(str)).toEqual("\\^\\^");
|
69
|
-
});
|
70
|
-
|
71
|
-
it("should escape dollar", function() {
|
72
|
-
str = "500$";
|
73
|
-
expect(Ext.String.escapeRegex(str)).toEqual("500\\$");
|
74
|
-
});
|
75
|
-
|
76
|
-
it("should escape open brace", function() {
|
77
|
-
str = "something{stupid";
|
78
|
-
expect(Ext.String.escapeRegex(str)).toEqual("something\\{stupid");
|
79
|
-
});
|
80
|
-
|
81
|
-
it("should escape close brace", function() {
|
82
|
-
str = "something}stupid";
|
83
|
-
expect(Ext.String.escapeRegex(str)).toEqual("something\\}stupid");
|
84
|
-
});
|
85
|
-
|
86
|
-
it("should escape open bracket", function() {
|
87
|
-
str = "something[stupid";
|
88
|
-
expect(Ext.String.escapeRegex(str)).toEqual("something\\[stupid");
|
89
|
-
});
|
90
|
-
|
91
|
-
it("should escape close bracket", function() {
|
92
|
-
str = "something]stupid";
|
93
|
-
expect(Ext.String.escapeRegex(str)).toEqual("something\\]stupid");
|
94
|
-
});
|
95
|
-
|
96
|
-
it("should escape open parenthesis", function() {
|
97
|
-
str = "something(stupid";
|
98
|
-
expect(Ext.String.escapeRegex(str)).toEqual("something\\(stupid");
|
99
|
-
});
|
100
|
-
|
101
|
-
it("should escape close parenthesis", function() {
|
102
|
-
str = "something)stupid";
|
103
|
-
expect(Ext.String.escapeRegex(str)).toEqual("something\\)stupid");
|
104
|
-
});
|
105
|
-
|
106
|
-
it("should escape vertival bar", function() {
|
107
|
-
str = "something|stupid";
|
108
|
-
expect(Ext.String.escapeRegex(str)).toEqual("something\\|stupid");
|
109
|
-
});
|
110
|
-
|
111
|
-
it("should escape forward slash", function() {
|
112
|
-
str = "something/stupid";
|
113
|
-
expect(Ext.String.escapeRegex(str)).toEqual("something\\/stupid");
|
114
|
-
});
|
115
|
-
|
116
|
-
it("should escape backslash", function() {
|
117
|
-
str = "something\\stupid";
|
118
|
-
expect(Ext.String.escapeRegex(str)).toEqual("something\\\\stupid");
|
119
|
-
});
|
120
|
-
});
|
121
|
-
|
122
|
-
describe("htmlEncode", function() {
|
123
|
-
var str;
|
124
|
-
|
125
|
-
it("should replace ampersands", function() {
|
126
|
-
str = "Fish & Chips";
|
127
|
-
expect(Ext.String.htmlEncode(str)).toEqual("Fish & Chips");
|
128
|
-
});
|
129
|
-
|
130
|
-
it("should replace less than", function() {
|
131
|
-
str = "Fish > Chips";
|
132
|
-
expect(Ext.String.htmlEncode(str)).toEqual("Fish > Chips");
|
133
|
-
});
|
134
|
-
|
135
|
-
it("should replace greater than", function() {
|
136
|
-
str = "Fish < Chips";
|
137
|
-
expect(Ext.String.htmlEncode(str)).toEqual("Fish < Chips");
|
138
|
-
});
|
139
|
-
|
140
|
-
it("should replace double quote", function() {
|
141
|
-
str = 'Fish " Chips';
|
142
|
-
expect(Ext.String.htmlEncode(str)).toEqual("Fish " Chips");
|
143
|
-
});
|
144
|
-
|
145
|
-
it("should replace apostraphes", function() {
|
146
|
-
str = "Fish ' Chips";
|
147
|
-
expect(Ext.String.htmlEncode(str)).toEqual("Fish ' Chips");
|
148
|
-
});
|
149
|
-
|
150
|
-
describe("adding character entities", function(){
|
151
|
-
|
152
|
-
var src = "A string with entities: èÜçñ¶",
|
153
|
-
encoded = "A string with entities: èÜçñ¶";
|
154
|
-
|
155
|
-
beforeEach(function(){
|
156
|
-
Ext.String.addCharacterEntities({
|
157
|
-
'Ü':'\u00dc',
|
158
|
-
'ç':'\u00e7',
|
159
|
-
'ñ':'ñ',
|
160
|
-
'è':'è',
|
161
|
-
'¶':'¶'
|
162
|
-
});
|
163
|
-
});
|
164
|
-
|
165
|
-
afterEach(function(){
|
166
|
-
Ext.String.resetCharacterEntities();
|
167
|
-
});
|
168
|
-
|
169
|
-
|
170
|
-
it("should allow extending the character entity set", function(){
|
171
|
-
expect(Ext.String.htmlEncode(src)).toBe(encoded);
|
172
|
-
});
|
173
|
-
});
|
174
|
-
});
|
175
|
-
|
176
|
-
describe("htmlDecode", function() {
|
177
|
-
var str;
|
178
|
-
|
179
|
-
it("should replace ampersands", function() {
|
180
|
-
str = "Fish & Chips";
|
181
|
-
expect(Ext.String.htmlDecode(str)).toEqual("Fish & Chips");
|
182
|
-
});
|
183
|
-
|
184
|
-
it("should replace less than", function() {
|
185
|
-
str = "Fish > Chips";
|
186
|
-
expect(Ext.String.htmlDecode(str)).toEqual("Fish > Chips");
|
187
|
-
});
|
188
|
-
|
189
|
-
it("should replace greater than", function() {
|
190
|
-
str = "Fish < Chips";
|
191
|
-
expect(Ext.String.htmlDecode(str)).toEqual("Fish < Chips");
|
192
|
-
});
|
193
|
-
|
194
|
-
it("should replace double quote", function() {
|
195
|
-
str = 'Fish " Chips';
|
196
|
-
expect(Ext.String.htmlDecode(str)).toEqual('Fish " Chips');
|
197
|
-
});
|
198
|
-
|
199
|
-
it("should replace apostraphes", function() {
|
200
|
-
str = "Fish ' Chips";
|
201
|
-
expect(Ext.String.htmlDecode(str)).toEqual("Fish ' Chips");
|
202
|
-
});
|
203
|
-
|
204
|
-
describe("adding character entities", function(){
|
205
|
-
|
206
|
-
var src = "A string with entities: èÜçñ¶",
|
207
|
-
encoded = "A string with entities: èÜçñ¶";
|
208
|
-
|
209
|
-
beforeEach(function(){
|
210
|
-
Ext.String.addCharacterEntities({
|
211
|
-
'Ü':'\u00dc',
|
212
|
-
'ç':'\u00e7',
|
213
|
-
'ñ':'ñ',
|
214
|
-
'è':'è',
|
215
|
-
'¶':'¶'
|
216
|
-
});
|
217
|
-
});
|
218
|
-
|
219
|
-
afterEach(function(){
|
220
|
-
Ext.String.resetCharacterEntities();
|
221
|
-
});
|
222
|
-
|
223
|
-
it("should allow extending the character entity set", function(){
|
224
|
-
expect(Ext.String.htmlDecode(encoded)).toBe(src);
|
225
|
-
});
|
226
|
-
});
|
227
|
-
});
|
228
|
-
|
229
|
-
describe("escaping", function() {
|
230
|
-
it("should leave an empty string alone", function() {
|
231
|
-
expect(Ext.String.escape('')).toEqual('');
|
232
|
-
});
|
233
|
-
|
234
|
-
it("should leave a non-empty string without escapable characters alone", function() {
|
235
|
-
expect(Ext.String.escape('Ed')).toEqual('Ed');
|
236
|
-
});
|
237
|
-
|
238
|
-
it("should correctly escape a double backslash", function() {
|
239
|
-
expect(Ext.String.escape("\\")).toEqual("\\\\");
|
240
|
-
});
|
241
|
-
|
242
|
-
it("should correctly escape a single backslash", function() {
|
243
|
-
expect(Ext.String.escape('\'')).toEqual('\\\'');
|
244
|
-
});
|
245
|
-
|
246
|
-
it("should correctly escape a mixture of escape and non-escape characters", function() {
|
247
|
-
expect(Ext.String.escape('\'foo\\')).toEqual('\\\'foo\\\\');
|
248
|
-
});
|
249
|
-
});
|
250
|
-
|
251
|
-
describe("formatting", function() {
|
252
|
-
it("should leave a string without format parameters alone", function() {
|
253
|
-
expect(Ext.String.format('Ed')).toEqual('Ed');
|
254
|
-
});
|
255
|
-
|
256
|
-
it("should ignore arguments that don't map to format params", function() {
|
257
|
-
expect(Ext.String.format("{0} person", 1, 123)).toEqual("1 person");
|
258
|
-
});
|
259
|
-
|
260
|
-
it("should accept several format parameters", function() {
|
261
|
-
expect(Ext.String.format("{0} person {1}", 1, 'came')).toEqual('1 person came');
|
262
|
-
});
|
263
|
-
});
|
264
|
-
|
265
|
-
describe("leftPad", function() {
|
266
|
-
it("should pad the left side of an empty string", function() {
|
267
|
-
expect(Ext.String.leftPad("", 5)).toEqual(" ");
|
268
|
-
});
|
269
|
-
|
270
|
-
it("should pad the left side of a non-empty string", function() {
|
271
|
-
expect(Ext.String.leftPad("Ed", 5)).toEqual(" Ed");
|
272
|
-
});
|
273
|
-
|
274
|
-
it("should not pad a string where the character count already exceeds the pad count", function() {
|
275
|
-
expect(Ext.String.leftPad("Abraham", 5)).toEqual("Abraham");
|
276
|
-
});
|
277
|
-
|
278
|
-
it("should allow a custom padding character", function() {
|
279
|
-
expect(Ext.String.leftPad("Ed", 5, "0")).toEqual("000Ed");
|
280
|
-
});
|
281
|
-
});
|
282
|
-
|
283
|
-
describe("when toggling between two values", function() {
|
284
|
-
it("should use the first toggle value if the string is not already one of the toggle values", function() {
|
285
|
-
expect(Ext.String.toggle("Aaron", "Ed", "Abe")).toEqual("Ed");
|
286
|
-
});
|
287
|
-
|
288
|
-
it("should toggle to the second toggle value if the string is currently the first", function() {
|
289
|
-
expect(Ext.String.toggle("Ed", "Ed", "Abe")).toEqual("Abe");
|
290
|
-
});
|
291
|
-
|
292
|
-
it("should toggle to the first toggle value if the string is currently the second", function() {
|
293
|
-
expect(Ext.String.toggle("Abe", "Ed", "Abe")).toEqual("Ed");
|
294
|
-
});
|
295
|
-
});
|
296
|
-
|
297
|
-
describe("trimming", function() {
|
298
|
-
it("should not modify an empty string", function() {
|
299
|
-
expect(Ext.String.trim("")).toEqual("");
|
300
|
-
});
|
301
|
-
|
302
|
-
it("should not modify a string with no whitespace", function() {
|
303
|
-
expect(Ext.String.trim("Abe")).toEqual("Abe");
|
304
|
-
});
|
305
|
-
|
306
|
-
it("should trim a whitespace-only string", function() {
|
307
|
-
expect(Ext.String.trim(" ")).toEqual("");
|
308
|
-
});
|
309
|
-
|
310
|
-
it("should trim leading whitespace", function() {
|
311
|
-
expect(Ext.String.trim(" Ed")).toEqual("Ed");
|
312
|
-
});
|
313
|
-
|
314
|
-
it("should trim trailing whitespace", function() {
|
315
|
-
expect(Ext.String.trim("Ed ")).toEqual("Ed");
|
316
|
-
});
|
317
|
-
|
318
|
-
it("should trim leading and trailing whitespace", function() {
|
319
|
-
expect(Ext.String.trim(" Ed ")).toEqual("Ed");
|
320
|
-
});
|
321
|
-
|
322
|
-
it("should not trim whitespace between words", function() {
|
323
|
-
expect(Ext.String.trim("Fish and chips")).toEqual("Fish and chips");
|
324
|
-
expect(Ext.String.trim(" Fish and chips ")).toEqual("Fish and chips");
|
325
|
-
});
|
326
|
-
|
327
|
-
it("should trim tabs", function() {
|
328
|
-
expect(Ext.String.trim("\tEd")).toEqual("Ed");
|
329
|
-
});
|
330
|
-
|
331
|
-
it("should trim a mixture of tabs and whitespace", function() {
|
332
|
-
expect(Ext.String.trim("\tEd ")).toEqual("Ed");
|
333
|
-
});
|
334
|
-
});
|
335
|
-
|
336
|
-
describe("urlAppend", function(){
|
337
|
-
it("should leave the string untouched if the second argument is empty", function(){
|
338
|
-
expect(Ext.String.urlAppend('sencha.com')).toEqual('sencha.com');
|
339
|
-
});
|
340
|
-
|
341
|
-
it("should append a ? if one doesn't exist", function(){
|
342
|
-
expect(Ext.String.urlAppend('sencha.com', 'foo=bar')).toEqual('sencha.com?foo=bar');
|
343
|
-
});
|
344
|
-
|
345
|
-
it("should append any new values with & if a ? exists", function(){
|
346
|
-
expect(Ext.String.urlAppend('sencha.com?x=y', 'foo=bar')).toEqual('sencha.com?x=y&foo=bar');
|
347
|
-
});
|
348
|
-
});
|
349
|
-
|
350
|
-
describe("capitalize", function(){
|
351
|
-
it("should handle an empty string", function(){
|
352
|
-
expect(Ext.String.capitalize('')).toEqual('');
|
353
|
-
});
|
354
|
-
|
355
|
-
it("should capitalize the first letter of the string", function(){
|
356
|
-
expect(Ext.String.capitalize('open')).toEqual('Open');
|
357
|
-
});
|
358
|
-
|
359
|
-
it("should leave the first letter capitalized if it is already capitalized", function(){
|
360
|
-
expect(Ext.String.capitalize('Closed')).toEqual('Closed');
|
361
|
-
});
|
362
|
-
|
363
|
-
it("should capitalize a single letter", function(){
|
364
|
-
expect(Ext.String.capitalize('a')).toEqual('A');
|
365
|
-
});
|
366
|
-
|
367
|
-
it("should capitalize even when spaces are included", function(){
|
368
|
-
expect(Ext.String.capitalize('this is a sentence')).toEqual('This is a sentence');
|
369
|
-
});
|
370
|
-
});
|
371
|
-
|
372
|
-
describe("uncapitalize", function(){
|
373
|
-
it("should handle an empty string", function(){
|
374
|
-
expect(Ext.String.uncapitalize('')).toEqual('');
|
375
|
-
});
|
376
|
-
|
377
|
-
it("should uncapitalize the first letter of the string", function(){
|
378
|
-
expect(Ext.String.uncapitalize('Foo')).toEqual('foo');
|
379
|
-
});
|
380
|
-
|
381
|
-
it("should ignore case in the rest of the string", function() {
|
382
|
-
expect(Ext.String.uncapitalize('FooBar')).toEqual('fooBar');
|
383
|
-
});
|
384
|
-
|
385
|
-
it("should leave the first letter uncapitalized if it is already uncapitalized", function(){
|
386
|
-
expect(Ext.String.uncapitalize('fooBar')).toEqual('fooBar');
|
387
|
-
});
|
388
|
-
|
389
|
-
it("should uncapitalize a single letter", function(){
|
390
|
-
expect(Ext.String.uncapitalize('F')).toEqual('f');
|
391
|
-
});
|
392
|
-
|
393
|
-
it("should uncapitalize even when spaces are included", function(){
|
394
|
-
expect(Ext.String.uncapitalize('This is a sentence')).toEqual('this is a sentence');
|
395
|
-
});
|
396
|
-
});
|
397
|
-
|
398
|
-
describe('repeat', function() {
|
399
|
-
it('should return an empty string if count == 0', function() {
|
400
|
-
expect(Ext.String.repeat('an ordinary string', 0)).toBe('');
|
401
|
-
});
|
402
|
-
it('should repeat the pattern as many times as required using the specified separator', function() {
|
403
|
-
expect(Ext.String.repeat('an ordinary string', 1, '/')).toBe('an ordinary string');
|
404
|
-
expect(Ext.String.repeat('an ordinary string', 2, '&')).toBe('an ordinary string&an ordinary string');
|
405
|
-
expect(Ext.String.repeat('an ordinary string', 3, '%')).toBe('an ordinary string%an ordinary string%an ordinary string');
|
406
|
-
});
|
407
|
-
it('should concatenate the repetitions if no separator is specified', function() {
|
408
|
-
expect(Ext.String.repeat('foo', 3)).toBe('foofoofoo');
|
409
|
-
expect(Ext.String.repeat('bar baz', 3)).toBe('bar bazbar bazbar baz');
|
410
|
-
});
|
411
|
-
});
|
412
|
-
|
413
|
-
describe('splitWords', function () {
|
414
|
-
it('should handle no args', function () {
|
415
|
-
var words = Ext.String.splitWords();
|
416
|
-
expect(Ext.encode(words)).toEqual('[]');
|
417
|
-
});
|
418
|
-
it('should handle null', function () {
|
419
|
-
var words = Ext.String.splitWords(null);
|
420
|
-
expect(Ext.encode(words)).toEqual('[]');
|
421
|
-
});
|
422
|
-
it('should handle an empty string', function () {
|
423
|
-
var words = Ext.String.splitWords('');
|
424
|
-
expect(Ext.encode(words)).toEqual('[]');
|
425
|
-
});
|
426
|
-
it('should handle one trimmed word', function () {
|
427
|
-
var words = Ext.String.splitWords('foo');
|
428
|
-
expect(Ext.encode(words)).toEqual('["foo"]');
|
429
|
-
});
|
430
|
-
it('should handle one word with spaces around it', function () {
|
431
|
-
var words = Ext.String.splitWords(' foo ');
|
432
|
-
expect(Ext.encode(words)).toEqual('["foo"]');
|
433
|
-
});
|
434
|
-
it('should handle two trimmed words', function () {
|
435
|
-
var words = Ext.String.splitWords('foo bar');
|
436
|
-
expect(Ext.encode(words)).toEqual('["foo","bar"]');
|
437
|
-
});
|
438
|
-
it('should handle two untrimmed words', function () {
|
439
|
-
var words = Ext.String.splitWords(' foo bar ');
|
440
|
-
expect(Ext.encode(words)).toEqual('["foo","bar"]');
|
441
|
-
});
|
442
|
-
it('should handle five trimmed words', function () {
|
443
|
-
var words = Ext.String.splitWords('foo bar bif boo foobar');
|
444
|
-
expect(Ext.encode(words)).toEqual('["foo","bar","bif","boo","foobar"]');
|
445
|
-
});
|
446
|
-
it('should handle five untrimmed words', function () {
|
447
|
-
var words = Ext.String.splitWords(' foo bar bif boo foobar \t');
|
448
|
-
expect(Ext.encode(words)).toEqual('["foo","bar","bif","boo","foobar"]');
|
449
|
-
});
|
450
|
-
})
|
451
|
-
});
|
@@ -1,252 +0,0 @@
|
|
1
|
-
describe("Ext.JSON", function() {
|
2
|
-
var nativeJson;
|
3
|
-
|
4
|
-
beforeEach(function() {
|
5
|
-
nativeJson = Ext.USE_NATIVE_JSON;
|
6
|
-
Ext.USE_NATIVE_JSON = false;
|
7
|
-
|
8
|
-
});
|
9
|
-
|
10
|
-
afterEach(function() {
|
11
|
-
Ext.USE_NATIVE_JSON = nativeJson;
|
12
|
-
});
|
13
|
-
|
14
|
-
describe("encode", function() {
|
15
|
-
var encode = Ext.JSON.encode;
|
16
|
-
|
17
|
-
describe("numbers encoding", function() {
|
18
|
-
it("should convert integer to string", function() {
|
19
|
-
expect(encode(15)).toEqual("15");
|
20
|
-
});
|
21
|
-
|
22
|
-
it("should convert float to string", function() {
|
23
|
-
expect(encode(14.7)).toEqual("14.7");
|
24
|
-
});
|
25
|
-
|
26
|
-
it("should convert Infinity to null string", function() {
|
27
|
-
expect(encode(Infinity)).toEqual("null");
|
28
|
-
});
|
29
|
-
|
30
|
-
it("should convert NaN to null string", function() {
|
31
|
-
expect(encode(NaN)).toEqual("null");
|
32
|
-
});
|
33
|
-
});
|
34
|
-
|
35
|
-
describe("encoding of not defined values", function() {
|
36
|
-
it("should convert undefined to null string", function() {
|
37
|
-
expect(encode(undefined)).toEqual("null");
|
38
|
-
});
|
39
|
-
|
40
|
-
it("should convert null to null string", function() {
|
41
|
-
expect(encode(null)).toEqual("null");
|
42
|
-
});
|
43
|
-
});
|
44
|
-
|
45
|
-
describe("encoding function", function() {
|
46
|
-
it("should convert function to null string", function() {
|
47
|
-
expect(encode(Ext.emptyFn)).toEqual("null");
|
48
|
-
});
|
49
|
-
});
|
50
|
-
|
51
|
-
describe("boolean encoding", function() {
|
52
|
-
it("should convert true to 'true'' string", function() {
|
53
|
-
expect(encode(true)).toEqual("true");
|
54
|
-
});
|
55
|
-
|
56
|
-
it("should convert null to 'false' string", function() {
|
57
|
-
expect(encode(false)).toEqual("false");
|
58
|
-
});
|
59
|
-
});
|
60
|
-
|
61
|
-
describe("array encoding", function() {
|
62
|
-
it("should convert empty array", function() {
|
63
|
-
expect(encode([])).toEqual("[]");
|
64
|
-
});
|
65
|
-
|
66
|
-
it("should convert array of numbers to string", function() {
|
67
|
-
expect(encode([1, 2, 3])).toEqual("[1,2,3]");
|
68
|
-
});
|
69
|
-
|
70
|
-
it("should convert array of strings to string", function() {
|
71
|
-
expect(encode(["a", "b", "c"])).toEqual("[\"a\",\"b\",\"c\"]");
|
72
|
-
});
|
73
|
-
|
74
|
-
it("should encode array including function member to string", function() {
|
75
|
-
expect(encode([1, Ext.emptyFn, 3])).toEqual("[1,null,3]");
|
76
|
-
});
|
77
|
-
|
78
|
-
it("should convert array including undefined member to string", function() {
|
79
|
-
expect(encode([1, undefined, 3])).toEqual("[1,null,3]");
|
80
|
-
});
|
81
|
-
|
82
|
-
it("should convert array including null member to string", function() {
|
83
|
-
expect(encode([1, null, 3])).toEqual("[1,null,3]");
|
84
|
-
});
|
85
|
-
});
|
86
|
-
|
87
|
-
describe("string encoding", function() {
|
88
|
-
it("should convert string", function() {
|
89
|
-
expect(encode("You're fired!")).toEqual("\"You're fired!\"");
|
90
|
-
});
|
91
|
-
|
92
|
-
it("should convert string with international character", function() {
|
93
|
-
expect(encode("You're fired!")).toEqual("\"You're fired!\"");
|
94
|
-
});
|
95
|
-
|
96
|
-
it("should convert string with tab character", function() {
|
97
|
-
expect(encode("a\tb")).toEqual("\"a\\tb\"");
|
98
|
-
});
|
99
|
-
|
100
|
-
it("should convert string with carriage return character", function() {
|
101
|
-
expect(encode("a\rb")).toEqual("\"a\\rb\"");
|
102
|
-
});
|
103
|
-
|
104
|
-
it("should convert string with form feed character", function() {
|
105
|
-
expect(encode("a\fb")).toEqual("\"a\\fb\"");
|
106
|
-
});
|
107
|
-
|
108
|
-
it("should convert string with new line character", function() {
|
109
|
-
expect(encode("a\nb")).toEqual("\"a\\nb\"");
|
110
|
-
});
|
111
|
-
|
112
|
-
it("should convert string with vertical tab character", function() {
|
113
|
-
expect(encode("a\x0bb")).toEqual("\"a\\u000bb\"");
|
114
|
-
});
|
115
|
-
|
116
|
-
it("should convert string with backslash character", function() {
|
117
|
-
expect(encode("a\\b")).toEqual("\"a\\\\b\"");
|
118
|
-
});
|
119
|
-
});
|
120
|
-
|
121
|
-
describe("object encoding", function() {
|
122
|
-
it("should convert empty object", function() {
|
123
|
-
expect(encode({})).toEqual("{}");
|
124
|
-
});
|
125
|
-
|
126
|
-
it("should convert empty object with undefined property", function() {
|
127
|
-
expect(encode({
|
128
|
-
foo: "bar",
|
129
|
-
bar: undefined
|
130
|
-
})).toEqual("{\"foo\":\"bar\",\"bar\":null}");
|
131
|
-
});
|
132
|
-
|
133
|
-
it("should convert empty object with null property", function() {
|
134
|
-
expect(encode({
|
135
|
-
foo: "bar",
|
136
|
-
bar: null
|
137
|
-
})).toEqual("{\"foo\":\"bar\",\"bar\":null}");
|
138
|
-
});
|
139
|
-
|
140
|
-
it("should convert empty object with function property", function() {
|
141
|
-
expect(encode({
|
142
|
-
foo: "bar",
|
143
|
-
bar: Ext.emptyFn
|
144
|
-
})).toEqual("{\"foo\":\"bar\",\"bar\":null}");
|
145
|
-
});
|
146
|
-
|
147
|
-
it("should not encode dom object", function() {
|
148
|
-
expect(encode(Ext.getBody().dom)).toBe('undefined');
|
149
|
-
});
|
150
|
-
|
151
|
-
it("should handle encoding unknown child objects", function(){
|
152
|
-
expect(encode({
|
153
|
-
prop: Ext.getBody().dom
|
154
|
-
})).toBe('{"prop":undefined}');
|
155
|
-
});
|
156
|
-
});
|
157
|
-
|
158
|
-
describe('encodeDate', function() {
|
159
|
-
var date;
|
160
|
-
|
161
|
-
it("should encode a date object", function() {
|
162
|
-
date = new Date("October 13, 1983 04:04:00");
|
163
|
-
|
164
|
-
expect(encode(date)).toEqual("\"1983-10-13T04:04:00\"");
|
165
|
-
});
|
166
|
-
|
167
|
-
it("should format integers to have at least two digits", function() {
|
168
|
-
date = new Date("August 9, 1983 06:03:02");
|
169
|
-
|
170
|
-
expect(encode(date)).toEqual("\"1983-08-09T06:03:02\"");
|
171
|
-
});
|
172
|
-
});
|
173
|
-
|
174
|
-
describe("mix all possibilities", function() {
|
175
|
-
it("should encode data", function() {
|
176
|
-
expect(encode({
|
177
|
-
arr: [1, Ext.emptyFn, undefined, 2, [1, 2, 3], {a: 1, b: null}],
|
178
|
-
foo: "bar",
|
179
|
-
woo: {
|
180
|
-
chu: "a\tb"
|
181
|
-
}
|
182
|
-
})).toEqual("{\"arr\":[1,null,null,2,[1,2,3],{\"a\":1,\"b\":null}],\"foo\":\"bar\",\"woo\":{\"chu\":\"a\\tb\"}}");
|
183
|
-
});
|
184
|
-
});
|
185
|
-
});
|
186
|
-
|
187
|
-
describe("decode", function() {
|
188
|
-
it("should decode data", function() {
|
189
|
-
expect(Ext.decode("{\"arr\":[1,null,null,2,[1,2,3],{\"a\":1,\"b\":null}],\"foo\":\"bar\",\"woo\":{\"chu\":\"a\\tb\"}}")).toEqual({
|
190
|
-
arr: [1, null, null, 2, [1, 2, 3], {a: 1, b: null}],
|
191
|
-
foo: "bar",
|
192
|
-
woo: {
|
193
|
-
chu: "a\tb"
|
194
|
-
}
|
195
|
-
});
|
196
|
-
});
|
197
|
-
|
198
|
-
it("should raise an Ext.Error with invalid data", function() {
|
199
|
-
expect(function(){
|
200
|
-
Ext.decode('{foo:"bar", x}');
|
201
|
-
}).toRaiseExtError();
|
202
|
-
});
|
203
|
-
|
204
|
-
describe("with safe param", function(){
|
205
|
-
it("should decode valid data", function() {
|
206
|
-
expect(Ext.decode("{\"foo\":\"bar\"}", true)).toEqual({
|
207
|
-
foo: "bar"
|
208
|
-
});
|
209
|
-
});
|
210
|
-
|
211
|
-
it("should return null with invalid data", function() {
|
212
|
-
expect(Ext.decode('{foo+"bar"}', true)).toBeNull();
|
213
|
-
});
|
214
|
-
});
|
215
|
-
});
|
216
|
-
|
217
|
-
it('should encode and decode an object', function(){
|
218
|
-
var object = {
|
219
|
-
a: [0, 1, 2],
|
220
|
-
s: "It's-me-Jacky!!",
|
221
|
-
ss: "!@#$%^&*()~=_-+][{};:?/.,<>'\"",
|
222
|
-
u: '\x01',
|
223
|
-
i: 1,
|
224
|
-
f: 3.14,
|
225
|
-
b: false,
|
226
|
-
n: null,
|
227
|
-
tree: {
|
228
|
-
sub: {
|
229
|
-
subMore: {
|
230
|
-
subEvenMore: {
|
231
|
-
arr: [5,6,7, {
|
232
|
-
complex: true
|
233
|
-
}]
|
234
|
-
}
|
235
|
-
}
|
236
|
-
}
|
237
|
-
}
|
238
|
-
};
|
239
|
-
|
240
|
-
expect(Ext.JSON.decode(Ext.JSON.encode(object))).toEqual(object);
|
241
|
-
});
|
242
|
-
|
243
|
-
describe("aliases", function() {
|
244
|
-
it("should alias Ext.JSON.decode with Ext.decode", function() {
|
245
|
-
expect(Ext.decode).toBe(Ext.JSON.decode);
|
246
|
-
});
|
247
|
-
|
248
|
-
it("should alias Ext.JSON.encode with Ext.encode", function() {
|
249
|
-
expect(Ext.encode).toBe(Ext.JSON.encode);
|
250
|
-
});
|
251
|
-
});
|
252
|
-
});
|