old_sql 1.16.0 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +24 -13
- data/app/controllers/old_sql/report_controller.rb +3 -17
- data/app/views/layouts/old_sql/chart.html.erb +11 -0
- data/app/views/old_sql/report/chart.html.erb +8 -25
- data/lib/generators/old_sql/templates/user_design_template.csv +2 -3
- data/lib/generators/old_sql/templates/user_old_sql_demo_chart_design.yml +18 -9
- data/lib/old_sql/report_design/chart.rb +2 -2
- data/lib/old_sql/report_design/chart_item.rb +4 -4
- data/lib/old_sql/report_design/chart_parser.rb +2 -2
- data/public/javascripts/old_sql/chart.js +33 -0
- metadata +5 -265
- data/public/javascripts/old_sql/MochiKit-1.4.2/Changes +0 -362
- data/public/javascripts/old_sql/MochiKit-1.4.2/LICENSE.txt +0 -69
- data/public/javascripts/old_sql/MochiKit-1.4.2/MANIFEST +0 -179
- data/public/javascripts/old_sql/MochiKit-1.4.2/META.json +0 -17
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Async.html +0 -814
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Base.html +0 -1703
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Color.html +0 -755
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DOM.html +0 -1197
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DateTime.html +0 -168
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DragAndDrop.html +0 -187
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Format.html +0 -300
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Iter.html +0 -524
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Logging.html +0 -420
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/LoggingPane.html +0 -142
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Position.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Selector.html +0 -240
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Signal.html +0 -508
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Sortable.html +0 -244
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Style.html +0 -385
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/VersionHistory.html +0 -384
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Visual.html +0 -1161
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/index.html +0 -447
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/js/toc.js +0 -113
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Async.rst +0 -767
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Base.rst +0 -1445
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Color.rst +0 -651
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DOM.rst +0 -1143
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DateTime.rst +0 -145
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DragAndDrop.rst +0 -197
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Format.rst +0 -258
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Iter.rst +0 -454
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Logging.rst +0 -348
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst +0 -128
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Position.rst +0 -26
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Selector.rst +0 -203
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Signal.rst +0 -498
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Sortable.rst +0 -186
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Style.rst +0 -353
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/VersionHistory.rst +0 -362
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Visual.rst +0 -895
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/index.rst +0 -83
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.css +0 -69
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.js +0 -401
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.json +0 -10
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.xml +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/index.html +0 -96
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.css +0 -4
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.js +0 -95
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/index.html +0 -31
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dnd_sortable.css +0 -23
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dropmarker.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/icon.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/index.html +0 -54
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable2_test.html +0 -150
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable3_test.html +0 -42
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable4_test.html +0 -90
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable5_test.html +0 -29
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_test.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_tree_test.html +0 -189
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.css +0 -28
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.js +0 -73
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/index.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_bigslide.html +0 -36
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blind.html +0 -65
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blindslide.html +0 -31
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_combi.css +0 -18
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_fadeappear.html +0 -61
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_grow_shrink.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_onload.html +0 -67
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue.html +0 -67
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue_limit.html +0 -30
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_scroll.html +0 -483
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_slide.html +0 -62
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/full.html +0 -71
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/icon.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/index.html +0 -150
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/index.html +0 -88
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.css +0 -54
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.js +0 -373
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/index.html +0 -78
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.css +0 -5
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.js +0 -85
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/index.html +0 -46
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.css +0 -78
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.js +0 -11
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/index.html +0 -74
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.css +0 -73
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.js +0 -125
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/index.html +0 -88
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.css +0 -17
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.js +0 -59
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/index.html +0 -28
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.css +0 -3
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.js +0 -19
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_boxes.html +0 -45
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_full.html +0 -119
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_ghost.html +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_hoverclass.html +0 -43
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_scroll.html +0 -91
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_snap.html +0 -54
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/index.html +0 -93
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/simple_dnd.css +0 -64
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/index.html +0 -71
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.css +0 -66
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.js +0 -203
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/SyntaxHighlighter.css +0 -177
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html +0 -339
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushCSharp.js +0 -30
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushDelphi.js +0 -31
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushJScript.js +0 -22
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPhp.js +0 -23
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPython.js +0 -71
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushSql.js +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushVb.js +0 -29
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushXml.js +0 -61
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shCore.js +0 -622
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.css +0 -1
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.html +0 -19
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.js +0 -70
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/bg_docheader.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_bullet.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_logo_doc.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/documentation.css +0 -130
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/general.css +0 -48
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Async.js +0 -682
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Base.js +0 -1489
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Color.js +0 -863
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DOM.js +0 -1256
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DateTime.js +0 -222
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DragAndDrop.js +0 -793
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Format.js +0 -304
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Iter.js +0 -844
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Logging.js +0 -315
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/LoggingPane.js +0 -353
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js +0 -188
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MockDOM.js +0 -115
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Position.js +0 -236
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Selector.js +0 -415
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Signal.js +0 -897
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Sortable.js +0 -589
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Style.js +0 -594
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Test.js +0 -162
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Visual.js +0 -2026
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/__package__.js +0 -18
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/MochiKit.js +0 -7829
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/__package__.js +0 -6
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/customize.html +0 -251
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/FakeJSAN.js +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/SimpleTest.js +0 -381
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/TestRunner.js +0 -159
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/test.css +0 -28
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/cli.js +0 -6
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/index.html +0 -25
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/standalone.js +0 -16
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Base.js +0 -577
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Color.js +0 -137
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DateTime.js +0 -52
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DragAndDrop.js +0 -30
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Format.js +0 -89
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Iter.js +0 -186
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Logging.js +0 -88
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.html +0 -408
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.json +0 -1
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Base.html +0 -34
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Color.html +0 -84
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM-Safari.html +0 -48
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM.html +0 -363
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DateTime.html +0 -39
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DragAndDrop.html +0 -54
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Format.html +0 -39
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Iter.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-JSAN.html +0 -32
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Logging.html +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-MochiKit.html +0 -18
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Selector.html +0 -295
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Signal.html +0 -43
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Style.html +0 -223
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Visual.html +0 -197
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Signal.js +0 -481
- data/public/javascripts/old_sql/plotkit-0.9.1/COPYING +0 -28
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Base.js +0 -406
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Canvas.js +0 -683
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/EasyPlot.js +0 -161
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Layout.js +0 -756
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit.js +0 -151
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit_Packed.js +0 -2177
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SVG.js +0 -705
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js +0 -348
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetSVG.js +0 -247
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/dummy.svg +0 -9
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/excanvas.js +0 -723
- data/public/javascripts/old_sql/plotkit-0.9.1/README +0 -1
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.html +0 -2
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.txt +0 -2
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.html +0 -302
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.txt +0 -139
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.html +0 -172
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.txt +0 -81
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.html +0 -155
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.txt +0 -50
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.html +0 -428
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.txt +0 -330
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.html +0 -368
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.txt +0 -256
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.html +0 -436
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.txt +0 -299
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.html +0 -159
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.txt +0 -64
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.html +0 -131
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.txt +0 -34
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.html +0 -131
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.txt +0 -34
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.html +0 -334
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.txt +0 -151
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.html +0 -304
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.txt +0 -144
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/barsample.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/black.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/blue.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/cyan.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/doc.css +0 -62
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/generate.py +0 -37
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/green.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/orange.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/piesample.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/purple.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/red.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/scripts/custom_rhino.jar +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/scripts/pack.py +0 -58
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/axis.html +0 -31
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.html +0 -25
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.js +0 -143
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/debug.html +0 -56
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.html +0 -58
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.js +0 -133
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.html +0 -57
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.js +0 -136
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/dynamic.html +0 -161
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/firefox.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/konqueror.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/mozilla.ico +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/msie.gif +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/opera.ico +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/safari.gif +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels-img.html +0 -38
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels.html +0 -43
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/prototype_compat.html +0 -28
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-easy.html +0 -29
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-horiz.html +0 -53
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-neg.html +0 -29
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-svg.html +0 -61
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart.html +0 -57
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sample.txt +0 -6
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.html +0 -29
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.js +0 -141
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.html +0 -26
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.js +0 -147
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.html +0 -24
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.js +0 -89
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/tests.css +0 -66
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.html +0 -20
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.js +0 -31
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"passed": true}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<script type="text/javascript" src="../lib/MochiKit/Base.js"></script>
|
|
4
|
-
<script type="text/javascript" src="../lib/MochiKit/Iter.js"></script>
|
|
5
|
-
<script type="text/javascript" src="../lib/MochiKit/DOM.js"></script>
|
|
6
|
-
<script type="text/javascript" src="../lib/MochiKit/Style.js"></script>
|
|
7
|
-
<script type="text/javascript" src="SimpleTest/SimpleTest.js"></script>
|
|
8
|
-
<link rel="stylesheet" type="text/css" href="SimpleTest/test.css">
|
|
9
|
-
</head>
|
|
10
|
-
<body>
|
|
11
|
-
|
|
12
|
-
<pre id="test">
|
|
13
|
-
<script type="text/javascript" src="test_Base.js"></script>
|
|
14
|
-
<script type="text/javascript">
|
|
15
|
-
try {
|
|
16
|
-
tests.test_Base({ok:ok,is:is});
|
|
17
|
-
ok( true, "test suite finished!");
|
|
18
|
-
} catch (err) {
|
|
19
|
-
var s = "test suite failure!\n";
|
|
20
|
-
var o = {};
|
|
21
|
-
var k = null;
|
|
22
|
-
for (k in err) {
|
|
23
|
-
// ensure unique keys?!
|
|
24
|
-
if (!o[k]) {
|
|
25
|
-
s += k + ": " + err[k] + "\n";
|
|
26
|
-
o[k] = err[k];
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
ok ( false, s );
|
|
30
|
-
}
|
|
31
|
-
</script>
|
|
32
|
-
</pre>
|
|
33
|
-
</body>
|
|
34
|
-
</html>
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<script type="text/javascript" src="../lib/MochiKit/Base.js"></script>
|
|
4
|
-
<script type="text/javascript" src="../lib/MochiKit/Iter.js"></script>
|
|
5
|
-
<script type="text/javascript" src="../lib/MochiKit/DOM.js"></script>
|
|
6
|
-
<script type="text/javascript" src="../lib/MochiKit/Style.js"></script>
|
|
7
|
-
<script type="text/javascript" src="../lib/MochiKit/Logging.js"></script>
|
|
8
|
-
<script type="text/javascript" src="../lib/MochiKit/Color.js"></script>
|
|
9
|
-
<script type="text/javascript" src="SimpleTest/SimpleTest.js"></script>
|
|
10
|
-
<link rel="stylesheet" type="text/css" href="SimpleTest/test.css">
|
|
11
|
-
<style type="text/css">.redtext {color: red}</style>
|
|
12
|
-
</head>
|
|
13
|
-
<body>
|
|
14
|
-
<div style="position:absolute; top: 0px; left:0px; width:0px; height:0px">
|
|
15
|
-
<span style="color: red" id="c_direct"></span>
|
|
16
|
-
<span class="redtext" id="c_indirect"></span>
|
|
17
|
-
</div>
|
|
18
|
-
<pre id="test">
|
|
19
|
-
<script type="text/javascript" src="test_Color.js"></script>
|
|
20
|
-
<script type="text/javascript">
|
|
21
|
-
try {
|
|
22
|
-
|
|
23
|
-
var t = {ok:ok, is:is};
|
|
24
|
-
tests.test_Color({ok:ok, is:is});
|
|
25
|
-
is(
|
|
26
|
-
Color.fromText(SPAN()).toHexString(),
|
|
27
|
-
"#000000",
|
|
28
|
-
"fromText no style"
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
is(
|
|
32
|
-
Color.fromText("c_direct").toHexString(),
|
|
33
|
-
Color.fromName("red").toHexString(),
|
|
34
|
-
"fromText direct style"
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
is(
|
|
38
|
-
Color.fromText("c_indirect").toHexString(),
|
|
39
|
-
Color.fromName("red").toHexString(),
|
|
40
|
-
"fromText indirect style"
|
|
41
|
-
);
|
|
42
|
-
|
|
43
|
-
is(
|
|
44
|
-
Color.fromComputedStyle("c_direct", "color").toHexString(),
|
|
45
|
-
Color.fromName("red").toHexString(),
|
|
46
|
-
"fromComputedStyle direct style"
|
|
47
|
-
);
|
|
48
|
-
|
|
49
|
-
is(
|
|
50
|
-
Color.fromComputedStyle("c_indirect", "color").toHexString(),
|
|
51
|
-
Color.fromName("red").toHexString(),
|
|
52
|
-
"fromComputedStyle indirect style"
|
|
53
|
-
);
|
|
54
|
-
|
|
55
|
-
is(
|
|
56
|
-
Color.fromBackground((SPAN(null, 'test'))).toHexString(),
|
|
57
|
-
Color.fromName("white").toHexString(),
|
|
58
|
-
"fromBackground with DOM"
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
// Done!
|
|
63
|
-
|
|
64
|
-
ok( true, "test suite finished!");
|
|
65
|
-
|
|
66
|
-
} catch (err) {
|
|
67
|
-
|
|
68
|
-
var s = "test suite failure!\n";
|
|
69
|
-
var o = {};
|
|
70
|
-
var k = null;
|
|
71
|
-
for (k in err) {
|
|
72
|
-
// ensure unique keys?!
|
|
73
|
-
if (!o[k]) {
|
|
74
|
-
s += k + ": " + err[k] + "\n";
|
|
75
|
-
o[k] = err[k];
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
ok ( false, s );
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
</script>
|
|
82
|
-
</pre>
|
|
83
|
-
</body>
|
|
84
|
-
</html>
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<script type="text/javascript" src="../lib/MochiKit/MockDOM.js"></script>
|
|
4
|
-
<script type="text/javascript" src="../lib/MochiKit/Base.js"></script>
|
|
5
|
-
<script type="text/javascript" src="../lib/MochiKit/Iter.js"></script>
|
|
6
|
-
<script type="text/javascript" src="../lib/MochiKit/DOM.js"></script>
|
|
7
|
-
<script type="text/javascript" src="../lib/MochiKit/Style.js"></script>
|
|
8
|
-
<script type="text/javascript" src="SimpleTest/SimpleTest.js"></script>
|
|
9
|
-
<link rel="stylesheet" type="text/css" href="SimpleTest/test.css">
|
|
10
|
-
</head>
|
|
11
|
-
<body>
|
|
12
|
-
|
|
13
|
-
<pre id="test">
|
|
14
|
-
<script type="text/javascript">
|
|
15
|
-
try {
|
|
16
|
-
|
|
17
|
-
for (var i = 0; i < 10000; i++) {
|
|
18
|
-
var n = document.createElement("DIV");
|
|
19
|
-
n.appendChild(document.createTextNode(""));
|
|
20
|
-
var list = MochiKit.Iter.list(n.childNodes);
|
|
21
|
-
var n2 = document.createElement("DIV");
|
|
22
|
-
appendChildNodes(n2, n.childNodes);
|
|
23
|
-
var n3 = document.createElement("DIV");
|
|
24
|
-
replaceChildNodes(n3, n2.childNodes);
|
|
25
|
-
}
|
|
26
|
-
ok( true, "Safari didn't crash! #213" );
|
|
27
|
-
ok( true, "test suite finished!");
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} catch (err) {
|
|
31
|
-
|
|
32
|
-
var s = "test suite failure!\n";
|
|
33
|
-
var o = {};
|
|
34
|
-
var k = null;
|
|
35
|
-
for (k in err) {
|
|
36
|
-
// ensure unique keys?!
|
|
37
|
-
if (!o[k]) {
|
|
38
|
-
s += k + ": " + err[k] + "\n";
|
|
39
|
-
o[k] = err[k];
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
ok ( false, s );
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
</script>
|
|
46
|
-
</pre>
|
|
47
|
-
</body>
|
|
48
|
-
</html>
|
|
@@ -1,363 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<script type="text/javascript" src="../lib/MochiKit/MockDOM.js"></script>
|
|
4
|
-
<script type="text/javascript" src="../lib/MochiKit/Base.js"></script>
|
|
5
|
-
<script type="text/javascript" src="../lib/MochiKit/Iter.js"></script>
|
|
6
|
-
<script type="text/javascript" src="../lib/MochiKit/DOM.js"></script>
|
|
7
|
-
<script type="text/javascript" src="../lib/MochiKit/Style.js"></script>
|
|
8
|
-
<script type="text/javascript" src="SimpleTest/SimpleTest.js"></script>
|
|
9
|
-
<link rel="stylesheet" type="text/css" href="SimpleTest/test.css">
|
|
10
|
-
</head>
|
|
11
|
-
<body>
|
|
12
|
-
|
|
13
|
-
<div style="display: none;">
|
|
14
|
-
<form id="form_test">
|
|
15
|
-
<select name="select">
|
|
16
|
-
<option value="foo" selected="selected">foo</option>
|
|
17
|
-
<option value="bar">bar</option>
|
|
18
|
-
<option value="baz">baz</option>
|
|
19
|
-
</select>
|
|
20
|
-
<select name="selmultiple" multiple="multiple">
|
|
21
|
-
<option value="bar" selected="selected">bar</option>
|
|
22
|
-
<option value="baz" selected="selected">baz</option>
|
|
23
|
-
<option value="foo">foo</option>
|
|
24
|
-
</select>
|
|
25
|
-
<input type="hidden" name="hidden" value="test" />
|
|
26
|
-
<input type="radio" name="radio_off" value="1" />
|
|
27
|
-
<input type="radio" name="radio_off" value="2" />
|
|
28
|
-
<input type="radio" name="radio_off" value="3" />
|
|
29
|
-
<input type="radio" name="radio_on" value="1" />
|
|
30
|
-
<input type="radio" name="radio_on" value="2" checked="checked" />
|
|
31
|
-
<input type="radio" name="radio_on" value="3" />
|
|
32
|
-
</form>
|
|
33
|
-
<form id="form_test2">
|
|
34
|
-
<select name="selempty">
|
|
35
|
-
<option value="" selected="selected">foo</option>
|
|
36
|
-
</select>
|
|
37
|
-
<select name="selempty2">
|
|
38
|
-
<option selected="selected">foo</option>
|
|
39
|
-
</select>
|
|
40
|
-
</form>
|
|
41
|
-
<div id="parentTwo" class="two">
|
|
42
|
-
<div id="parentOne" class="one">
|
|
43
|
-
<div id="parentZero" class="zero">
|
|
44
|
-
<span id="child">child</span>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
|
|
50
|
-
<pre id="test">
|
|
51
|
-
<script type="text/javascript">
|
|
52
|
-
try {
|
|
53
|
-
|
|
54
|
-
lst = [];
|
|
55
|
-
o = {"blah": function () { lst.push("original"); }};
|
|
56
|
-
addToCallStack(o, "blah", function () { lst.push("new"); }, true);
|
|
57
|
-
addToCallStack(o, "blah", function () { lst.push("stuff"); }, true);
|
|
58
|
-
is( typeof(o.blah), 'function', 'addToCallStack has a function' );
|
|
59
|
-
is( o.blah.callStack.length, 3, 'callStack length 3' );
|
|
60
|
-
o.blah();
|
|
61
|
-
is( lst.join(" "), "original new stuff", "callStack in correct order" );
|
|
62
|
-
is( o.blah, null, "set to null" );
|
|
63
|
-
lst = [];
|
|
64
|
-
o = {"blah": function () { lst.push("original"); }};
|
|
65
|
-
addToCallStack(o, "blah",
|
|
66
|
-
function () { lst.push("new"); return false;}, false);
|
|
67
|
-
addToCallStack(o, "blah", function () { lst.push("stuff"); }, false);
|
|
68
|
-
o.blah();
|
|
69
|
-
is( lst.join(" "), "original new", "callStack in correct order (abort)" );
|
|
70
|
-
o.blah();
|
|
71
|
-
is( lst.join(" "), "original new original new", "callStack in correct order (again)" );
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
is( escapeHTML("<>\"&bar"), "<>"&bar", "escapeHTML" ); // for emacs highlighting: "
|
|
75
|
-
|
|
76
|
-
var isDOM = function (value, expected, message) {
|
|
77
|
-
is( escapeHTML(toHTML(value)), escapeHTML(expected), message );
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
var d = document.createElement('span');
|
|
81
|
-
updateNodeAttributes(d, {"foo": "bar", "baz": "wibble"});
|
|
82
|
-
isDOM( d, '<span baz="wibble" foo="bar"/>', "updateNodeAttributes" );
|
|
83
|
-
var d = document.createElement('input');
|
|
84
|
-
d.value = "foo";
|
|
85
|
-
updateNodeAttributes(d, { value: "bar" });
|
|
86
|
-
is( d.value, 'bar', "updateNodeAttributes updates value property" );
|
|
87
|
-
is( d.getAttribute("value"), 'bar', "updateNodeAttributes updates value attribute" );
|
|
88
|
-
|
|
89
|
-
var d = document.createElement('span');
|
|
90
|
-
var o = { elem: SPAN(null, "foo"), __dom__: function() { return this.elem; } };
|
|
91
|
-
appendChildNodes(d, 'word up', [document.createElement('span')], o);
|
|
92
|
-
isDOM( d, '<span>word up<span/><span>foo</span></span>', 'appendChildNodes' );
|
|
93
|
-
removeElement(o);
|
|
94
|
-
isDOM( d, '<span>word up<span/></span>', 'removeElement using DOM Coercion Rules' );
|
|
95
|
-
|
|
96
|
-
replaceChildNodes(d, 'Think Different');
|
|
97
|
-
isDOM( d, '<span>Think Different</span>', 'replaceChildNodes' );
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
insertSiblingNodesBefore(d.childNodes[0], 'word up', document.createElement('span'));
|
|
101
|
-
isDOM( d, '<span>word up<span/>Think Different</span>', 'insertSiblingNodesBefore' );
|
|
102
|
-
|
|
103
|
-
insertSiblingNodesAfter(d.childNodes[0], 'purple monkey', document.createElement('span'));
|
|
104
|
-
isDOM( d, '<span>word uppurple monkey<span/><span/>Think Different</span>', 'insertSiblingNodesAfter' );
|
|
105
|
-
|
|
106
|
-
d = createDOM("span");
|
|
107
|
-
isDOM( d, "<span/>", "createDOM empty" );
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
d = createDOM("span", {"foo": "bar", "baz": "wibble"});
|
|
111
|
-
isDOM( d, '<span baz="wibble" foo="bar"/>', "createDOM attributes" );
|
|
112
|
-
|
|
113
|
-
d = createDOM("span", {"foo": "bar", "baz": "wibble", "spam": "egg"}, "one", "two", "three");
|
|
114
|
-
is( getNodeAttribute(d, 'foo'), "bar", "createDOM attribute" );
|
|
115
|
-
is( getNodeAttribute(d, 'baz'), "wibble", "createDOM attribute" );
|
|
116
|
-
is( getNodeAttribute(d, 'lang'), null, "getNodeAttribute on IE added attribute" );
|
|
117
|
-
is( getNodeAttribute("donotexist", 'foo'), null, "getNodeAttribute invalid node id" );
|
|
118
|
-
removeNodeAttribute(d, "spam");
|
|
119
|
-
is( scrapeText(d), "onetwothree", "createDOM contents" );
|
|
120
|
-
|
|
121
|
-
isDOM( d, '<span baz="wibble" foo="bar">onetwothree</span>', "createDOM contents" );
|
|
122
|
-
|
|
123
|
-
d = createDOM("span", null, function (f) {
|
|
124
|
-
return this.nodeName.toLowerCase() + "hi" + f.nodeName.toLowerCase();});
|
|
125
|
-
isDOM( d, '<span>spanhispan</span>', 'createDOM function call' );
|
|
126
|
-
|
|
127
|
-
d = createDOM("span", null, {msg: "hi", dom: function (f) {
|
|
128
|
-
return f.nodeName.toLowerCase() + this.msg; }});
|
|
129
|
-
isDOM( d, '<span>spanhi</span>', 'createDOM this.dom() call' );
|
|
130
|
-
|
|
131
|
-
d = createDOM("span", null, {msg: "hi", __dom__: function (f) {
|
|
132
|
-
return f.nodeName.toLowerCase() + this.msg; }});
|
|
133
|
-
isDOM( d, '<span>spanhi</span>', 'createDOM this.__dom__() call' );
|
|
134
|
-
|
|
135
|
-
d = createDOM("span", null, range(4));
|
|
136
|
-
isDOM( d, '<span>0123</span>', 'createDOM iterable' );
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
var d = {"taco": "pork"};
|
|
140
|
-
registerDOMConverter("taco",
|
|
141
|
-
function (o) { return !isUndefinedOrNull(o.taco); },
|
|
142
|
-
function (o) { return "Goddamn, I like " + o.taco + " tacos"; }
|
|
143
|
-
);
|
|
144
|
-
d = createDOM("span", null, d);
|
|
145
|
-
// not yet public API
|
|
146
|
-
domConverters.unregister("taco");
|
|
147
|
-
|
|
148
|
-
isDOM( d, "<span>Goddamn, I like pork tacos</span>", "createDOM with custom converter" );
|
|
149
|
-
|
|
150
|
-
is(
|
|
151
|
-
escapeHTML(toHTML(SPAN(null))),
|
|
152
|
-
escapeHTML(toHTML(createDOM("span", null))),
|
|
153
|
-
"createDOMFunc vs createDOM"
|
|
154
|
-
);
|
|
155
|
-
|
|
156
|
-
is( scrapeText(d), "Goddamn, I like pork tacos", "scrape OK" );
|
|
157
|
-
is( scrapeText(d, true).join(""), "Goddamn, I like pork tacos", "scrape Array OK" );
|
|
158
|
-
|
|
159
|
-
var st = DIV(null, STRONG(null, "d"), "oor ", STRONG(null, "f", SPAN(null, "r"), "a"), "me");
|
|
160
|
-
is( scrapeText(st), "door frame", "scrape in-order" );
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
ok( !isUndefinedOrNull(getElement("test")), "getElement might work" );
|
|
164
|
-
ok( !isUndefinedOrNull($("test")), "$ alias might work" );
|
|
165
|
-
ok( getElement("donotexist") === null, "getElement invalid id" );
|
|
166
|
-
|
|
167
|
-
d = createDOM("span", null, "one", "two");
|
|
168
|
-
swapDOM(d.childNodes[0], document.createTextNode("uno"));
|
|
169
|
-
isDOM( d, "<span>unotwo</span>", "swapDOM" );
|
|
170
|
-
var o = { elem: SPAN(null, "foo"), __dom__: function() { return this.elem; } };
|
|
171
|
-
swapDOM(d.childNodes[0], o);
|
|
172
|
-
isDOM( d, "<span><span>foo</span>two</span>", "swapDOM using DOM Coercion Rules" );
|
|
173
|
-
|
|
174
|
-
is( scrapeText(d, true).join(" "), "foo two", "multi-node scrapeText" );
|
|
175
|
-
/*
|
|
176
|
-
|
|
177
|
-
TODO:
|
|
178
|
-
addLoadEvent (async test?)
|
|
179
|
-
|
|
180
|
-
*/
|
|
181
|
-
|
|
182
|
-
d = createDOM("span", {"class": "foo"});
|
|
183
|
-
setElementClass(d, "bar baz");
|
|
184
|
-
ok( d.className == "bar baz", "setElementClass");
|
|
185
|
-
toggleElementClass("bar", d);
|
|
186
|
-
ok( d.className == "baz", "toggleElementClass: " + d.className);
|
|
187
|
-
toggleElementClass("bar", d);
|
|
188
|
-
ok( hasElementClass(d, "baz", "bar"),
|
|
189
|
-
"toggleElementClass 2: " + d.className);
|
|
190
|
-
addElementClass(d, "bar");
|
|
191
|
-
ok( hasElementClass(d, "baz", "bar"),
|
|
192
|
-
"toggleElementClass 3: " + d.className);
|
|
193
|
-
ok( addElementClass(d, "blah"), "addElementClass return");
|
|
194
|
-
ok( hasElementClass(d, "baz", "bar", "blah"), "addElementClass action");
|
|
195
|
-
ok( !hasElementClass(d, "not"), "hasElementClass single");
|
|
196
|
-
ok( !hasElementClass(d, "baz", "not"), "hasElementClass multiple");
|
|
197
|
-
ok( removeElementClass(d, "blah"), "removeElementClass" );
|
|
198
|
-
ok( !removeElementClass(d, "blah"), "removeElementClass again" );
|
|
199
|
-
ok( !hasElementClass(d, "blah"), "removeElementClass again (hasElement)" );
|
|
200
|
-
removeElementClass(d, "baz");
|
|
201
|
-
ok( !swapElementClass(d, "blah", "baz"), "false swapElementClass" );
|
|
202
|
-
ok( !hasElementClass(d, "baz"), "false swapElementClass from" );
|
|
203
|
-
ok( !hasElementClass(d, "blah"), "false swapElementClass to" );
|
|
204
|
-
addElementClass(d, "blah");
|
|
205
|
-
ok( swapElementClass(d, "blah", "baz"), "swapElementClass" );
|
|
206
|
-
ok( hasElementClass(d, "baz"), "swapElementClass has toClass" );
|
|
207
|
-
ok( !hasElementClass(d, "blah"), "swapElementClass !has fromClass" );
|
|
208
|
-
ok( !swapElementClass(d, "blah", "baz"), "swapElementClass twice" );
|
|
209
|
-
ok( hasElementClass(d, "baz"), "swapElementClass has toClass" );
|
|
210
|
-
ok( !hasElementClass(d, "blah"), "swapElementClass !has fromClass" );
|
|
211
|
-
ok( !hasElementClass("donotexist", "foo"), "hasElementClass invalid node id" );
|
|
212
|
-
|
|
213
|
-
TABLE;
|
|
214
|
-
TBODY;
|
|
215
|
-
TR;
|
|
216
|
-
var t = TABLE(null,
|
|
217
|
-
TBODY({"class": "foo bar", "id":"tbody0"},
|
|
218
|
-
TR({"class": "foo", "id":"tr0"}),
|
|
219
|
-
TR({"class": "bar", "id":"tr1"})
|
|
220
|
-
)
|
|
221
|
-
);
|
|
222
|
-
|
|
223
|
-
var matchElements = getElementsByTagAndClassName;
|
|
224
|
-
is(
|
|
225
|
-
map(itemgetter("id"), matchElements(null, "foo", t)).join(" "),
|
|
226
|
-
"tbody0 tr0",
|
|
227
|
-
"getElementsByTagAndClassName found all tags with foo class"
|
|
228
|
-
);
|
|
229
|
-
is(
|
|
230
|
-
map(itemgetter("id"), matchElements("tr", "foo", t)).join(" "),
|
|
231
|
-
"tr0",
|
|
232
|
-
"getElementsByTagAndClassName found all tr tags with foo class"
|
|
233
|
-
);
|
|
234
|
-
is(
|
|
235
|
-
map(itemgetter("id"), matchElements("tr", null, t)).join(" "),
|
|
236
|
-
"tr0 tr1",
|
|
237
|
-
"getElementsByTagAndClassName found all tr tags"
|
|
238
|
-
);
|
|
239
|
-
is( getElementsByTagAndClassName("td", null, t).length, 0, "getElementsByTagAndClassName no match found");
|
|
240
|
-
is( getElementsByTagAndClassName("p", [], "donotexist").length, 0, "getElementsByTagAndClassName invalid parent id");
|
|
241
|
-
|
|
242
|
-
is( getFirstElementByTagAndClassName(null, "foo", t).id, "tbody0", "getFirstElementByTagAndClassName class name" );
|
|
243
|
-
is( getFirstElementByTagAndClassName("tr", "foo", t).id, "tr0", "getFirstElementByTagAndClassName tag and class name" );
|
|
244
|
-
is( getFirstElementByTagAndClassName("tr", null, t).id, "tr0", "getFirstElementByTagAndClassName tag name" );
|
|
245
|
-
ok( getFirstElementByTagAndClassName("td", null, t) === null, "getFirstElementByTagAndClassName no matching tag" );
|
|
246
|
-
ok( getFirstElementByTagAndClassName("tr", "donotexist", t) === null, "getFirstElementByTagAndClassName no matching class" );
|
|
247
|
-
ok( getFirstElementByTagAndClassName('*', null, 'donotexist') === null, "getFirstElementByTagAndClassName invalid parent id" );
|
|
248
|
-
|
|
249
|
-
var oldDoc = document;
|
|
250
|
-
var doc = MochiKit.MockDOM.createDocument();
|
|
251
|
-
is( currentDocument(), document, "currentDocument() correct" );
|
|
252
|
-
withDocument(doc, function () {
|
|
253
|
-
ok( document != doc, "global doc unchanged" );
|
|
254
|
-
is( currentDocument(), doc, "currentDocument() correct" );
|
|
255
|
-
var h1 = H1();
|
|
256
|
-
var span = SPAN(null, "foo", h1);
|
|
257
|
-
appendChildNodes(currentDocument().body, span);
|
|
258
|
-
});
|
|
259
|
-
is( document, oldDoc, "doc restored" );
|
|
260
|
-
is( doc.childNodes.length, 1, "doc has one child" );
|
|
261
|
-
is( doc.body.childNodes.length, 1, "body has one child" );
|
|
262
|
-
var sp = doc.body.childNodes[0];
|
|
263
|
-
is( sp.nodeName, "SPAN", "only child is SPAN" );
|
|
264
|
-
is( sp.childNodes.length, 2, "SPAN has two childNodes" );
|
|
265
|
-
is( sp.childNodes[0].nodeValue, "foo", "first node is text" );
|
|
266
|
-
is( sp.childNodes[1].nodeName, "H1", "second child is H1" );
|
|
267
|
-
|
|
268
|
-
is( currentDocument(), document, "currentDocument() correct" );
|
|
269
|
-
try {
|
|
270
|
-
withDocument(doc, function () {
|
|
271
|
-
ok( document != doc, "global doc unchanged" );
|
|
272
|
-
is( currentDocument(), doc, "currentDocument() correct" );
|
|
273
|
-
throw new Error("foo");
|
|
274
|
-
});
|
|
275
|
-
ok( false, "didn't throw" );
|
|
276
|
-
} catch (e) {
|
|
277
|
-
ok( true, "threw" );
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
var mockWindow = {"foo": "bar"};
|
|
281
|
-
is (currentWindow(), window, "currentWindow ok");
|
|
282
|
-
withWindow(mockWindow, function () {
|
|
283
|
-
is(currentWindow(), mockWindow, "withWindow ok");
|
|
284
|
-
});
|
|
285
|
-
is (currentWindow(), window, "currentWindow ok");
|
|
286
|
-
|
|
287
|
-
doc = MochiKit.MockDOM.createDocument();
|
|
288
|
-
var frm;
|
|
289
|
-
withDocument(doc, function () {
|
|
290
|
-
frm = FORM({name: "ignore"},
|
|
291
|
-
INPUT({name:"foo", value:"bar"}),
|
|
292
|
-
INPUT({name:"foo", value:"bar"}),
|
|
293
|
-
INPUT({name:"baz", value:"bar"})
|
|
294
|
-
);
|
|
295
|
-
});
|
|
296
|
-
var kv = formContents(frm);
|
|
297
|
-
is( kv[0].join(","), "foo,foo,baz", "mock formContents names" );
|
|
298
|
-
is( kv[1].join(","), "bar,bar,bar", "mock formContents values" );
|
|
299
|
-
is( queryString(frm), "foo=bar&foo=bar&baz=bar", "mock queryString hook" );
|
|
300
|
-
|
|
301
|
-
var kv = formContents("form_test");
|
|
302
|
-
is( kv[0].join(","), "select,selmultiple,selmultiple,hidden,radio_on", "formContents names" );
|
|
303
|
-
is( kv[1].join(","), "foo,bar,baz,test,2", "formContents values" );
|
|
304
|
-
is( queryString("form_test"), "select=foo&selmultiple=bar&selmultiple=baz&hidden=test&radio_on=2", "queryString hook" );
|
|
305
|
-
kv = formContents("form_test2");
|
|
306
|
-
is( kv[0].join(","), "selempty,selempty2", "formContents names empty option values" );
|
|
307
|
-
is( kv[1].join(","), ",foo", "formContents empty option values" );
|
|
308
|
-
is( queryString("form_test2"), "selempty=&selempty2=foo", "queryString empty option values" );
|
|
309
|
-
|
|
310
|
-
var d = DIV(null, SPAN(), " \n\t", SPAN(), "foo", SPAN(), " ");
|
|
311
|
-
is( d.childNodes.length, 6, "removeEmptyNodes test conditions correct" );
|
|
312
|
-
removeEmptyTextNodes(d);
|
|
313
|
-
is( d.childNodes.length, 4, "removeEmptyNodes" );
|
|
314
|
-
|
|
315
|
-
is( getFirstParentByTagAndClassName('child', 'div', 'two'), getElement("parentTwo"), "getFirstParentByTagAndClassName found parent" );
|
|
316
|
-
is( getFirstParentByTagAndClassName('child', 'div'), getElement("parentZero"), "getFirstParentByTagAndClassName found parent (any class)" );
|
|
317
|
-
is( getFirstParentByTagAndClassName('child', '*', 'two'), getElement("parentTwo"), "getFirstParentByTagAndClassName found parent (any tag)" );
|
|
318
|
-
is( getFirstParentByTagAndClassName('child', '*'), getElement("parentZero"), "getFirstParentByTagAndClassName found parent (any tag + any class)" );
|
|
319
|
-
ok( getFirstParentByTagAndClassName('child', 'form') === null, "getFirstParentByTagAndClassName found null parent (no match)" );
|
|
320
|
-
ok( getFirstParentByTagAndClassName('donotexist', '*') === null, "getFirstParentByTagAndClassName invalid elem id" );
|
|
321
|
-
|
|
322
|
-
ok( isChildNode('child', 'child'), "isChildNode of itself");
|
|
323
|
-
ok( isChildNode('child', 'parentZero'), "isChildNode direct child");
|
|
324
|
-
ok( isChildNode('child', 'parentTwo'), "isChildNode sub child");
|
|
325
|
-
ok( !isChildNode('child', 'form_test'), "isChildNode wrong child");
|
|
326
|
-
ok( !isChildNode('child', 'donotexist'), "isChildNode no parent");
|
|
327
|
-
ok( !isChildNode('donotexist', 'child'), "isChildNode no parent");
|
|
328
|
-
ok( isChildNode('child', document.body), "isChildNode of body");
|
|
329
|
-
ok( isChildNode($('child').firstChild, 'parentTwo'), "isChildNode text node");
|
|
330
|
-
ok( !isChildNode( SPAN(), document.body), "isChildNode child not in DOM");
|
|
331
|
-
ok( !isChildNode( SPAN(), 'child'), "isChildNode child not in DOM");
|
|
332
|
-
ok( !isChildNode( 'child', SPAN()), "isChildNode parent not in DOM");
|
|
333
|
-
|
|
334
|
-
// Test optional dependency on Iter
|
|
335
|
-
var Iter = MochiKit.Iter;
|
|
336
|
-
delete MochiKit["Iter"];
|
|
337
|
-
d = DIV({"foo": "bar"}, SPAN({}, "one"));
|
|
338
|
-
is( getNodeAttribute(d, 'foo'), "bar", "createDOM attribute without Iter" );
|
|
339
|
-
is( scrapeText(d), "one", "node contents without Iter" );
|
|
340
|
-
MochiKit.Iter = Iter;
|
|
341
|
-
|
|
342
|
-
ok( true, "test suite finished!");
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
} catch (err) {
|
|
346
|
-
|
|
347
|
-
var s = "test suite failure!\n";
|
|
348
|
-
var o = {};
|
|
349
|
-
var k = null;
|
|
350
|
-
for (k in err) {
|
|
351
|
-
// ensure unique keys?!
|
|
352
|
-
if (!o[k]) {
|
|
353
|
-
s += k + ": " + err[k] + "\n";
|
|
354
|
-
o[k] = err[k];
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
ok ( false, s );
|
|
358
|
-
|
|
359
|
-
}
|
|
360
|
-
</script>
|
|
361
|
-
</pre>
|
|
362
|
-
</body>
|
|
363
|
-
</html>
|