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,43 +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/Signal.js"></script>
|
|
8
|
-
<script type="text/javascript" src="../lib/MochiKit/Logging.js"></script>
|
|
9
|
-
<script type="text/javascript" src="SimpleTest/SimpleTest.js"></script>
|
|
10
|
-
<link rel="stylesheet" type="text/css" href="SimpleTest/test.css">
|
|
11
|
-
|
|
12
|
-
</head>
|
|
13
|
-
<body>
|
|
14
|
-
|
|
15
|
-
Please ignore this button: <input type="submit" id="submit" /><br />
|
|
16
|
-
|
|
17
|
-
<pre id="test">
|
|
18
|
-
<script type="text/javascript" src="test_Signal.js"></script>
|
|
19
|
-
<script type="text/javascript">
|
|
20
|
-
try {
|
|
21
|
-
|
|
22
|
-
tests.test_Signal({ok:ok, is:is});
|
|
23
|
-
ok(true, "test suite finished!");
|
|
24
|
-
|
|
25
|
-
} catch (err) {
|
|
26
|
-
|
|
27
|
-
var s = "test suite failure!\n";
|
|
28
|
-
var o = {};
|
|
29
|
-
var k = null;
|
|
30
|
-
for (k in err) {
|
|
31
|
-
// ensure unique keys?!
|
|
32
|
-
if (!o[k]) {
|
|
33
|
-
s += k + ": " + err[k] + "\n";
|
|
34
|
-
o[k] = err[k];
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
ok(false, s);
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
</script>
|
|
41
|
-
</pre>
|
|
42
|
-
</body>
|
|
43
|
-
</html>
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<script type="text/javascript" src="../lib/MochiKit/MockDOM.js"></script>
|
|
5
|
-
<script type="text/javascript" src="../lib/MochiKit/Base.js"></script>
|
|
6
|
-
<script type="text/javascript" src="../lib/MochiKit/DOM.js"></script>
|
|
7
|
-
<script type="text/javascript" src="../lib/MochiKit/Iter.js"></script>
|
|
8
|
-
<script type="text/javascript" src="../lib/MochiKit/Style.js"></script>
|
|
9
|
-
<script type="text/javascript" src="../lib/MochiKit/Color.js"></script>
|
|
10
|
-
<script type="text/javascript" src="../lib/MochiKit/Logging.js"></script>
|
|
11
|
-
<script type="text/javascript" src="SimpleTest/SimpleTest.js"></script>
|
|
12
|
-
<link rel="stylesheet" type="text/css" href="SimpleTest/test.css">
|
|
13
|
-
<style type="text/css">
|
|
14
|
-
#hideTest {
|
|
15
|
-
display: none;
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
18
|
-
</head>
|
|
19
|
-
<body style="border: 0; margin: 0; padding: 0;">
|
|
20
|
-
|
|
21
|
-
<div id="styleTest" style="position: absolute; left: 400px; top: 100px; width: 100px; height: 80px; padding: 10px 20px 30px 40px; border-width: 1px 2px 3px 4px; border-style: solid; border-color: blue; background: red; opacity: 0.5; filter: alpha(opacity=50); font-size: 10px; overflow-x: visible; overflow-y: hidden;"><div id="innerDiv"></div>TEST<span id="styleSubTest">SUB</span><div id="floatTest" style="float: left;">Float</div></div>
|
|
22
|
-
|
|
23
|
-
<div id="hideTest" style="width: 100px; height: 100px;"><div id="innerHideTest" style="width: 10px; height: 10px;"></div></div>
|
|
24
|
-
|
|
25
|
-
<table id="testTable" border="0" cellspacing="0" cellpadding="0"
|
|
26
|
-
style="position:absolute;left: 400px; top:300px;line-height:20px;"><tr align="center">
|
|
27
|
-
<td id="testCell1" style="width: 80px; height: 30px; border:2px solid blue">1</td>
|
|
28
|
-
<td id="testCell2" style="width: 80px; height: 30px; border:2px solid blue">2</td>
|
|
29
|
-
<td id="testCell3" style="width: 80px; height: 30px; border:2px solid blue">3</td>
|
|
30
|
-
</tr></table>
|
|
31
|
-
|
|
32
|
-
<pre id="test">
|
|
33
|
-
<script type="text/javascript">
|
|
34
|
-
|
|
35
|
-
try {
|
|
36
|
-
|
|
37
|
-
// initial
|
|
38
|
-
var pos = getElementPosition('styleTest');
|
|
39
|
-
is(pos.x, 400, 'initial x position');
|
|
40
|
-
is(pos.y, 100, 'initial y position');
|
|
41
|
-
|
|
42
|
-
// Coordinates including border and padding
|
|
43
|
-
pos = getElementPosition('innerDiv');
|
|
44
|
-
is(pos.x, 444, 'x position with offsetParent border');
|
|
45
|
-
is(pos.y, 111, 'y position with offsetParent border');
|
|
46
|
-
|
|
47
|
-
// moved
|
|
48
|
-
var newPos = new MochiKit.Style.Coordinates(500, 200);
|
|
49
|
-
setElementPosition('styleTest', newPos);
|
|
50
|
-
pos = getElementPosition('styleTest');
|
|
51
|
-
is(pos.x, 500, 'updated x position');
|
|
52
|
-
is(pos.y, 200, 'updated y position');
|
|
53
|
-
|
|
54
|
-
// moved with relativeTo
|
|
55
|
-
anotherPos = new MochiKit.Style.Coordinates(100, 100);
|
|
56
|
-
pos = getElementPosition('styleTest', anotherPos);
|
|
57
|
-
is(pos.x, 400, 'updated x position (using relativeTo parameter)');
|
|
58
|
-
is(pos.y, 100, 'updated y position (using relativeTo parameter)');
|
|
59
|
-
|
|
60
|
-
// Coordinates object
|
|
61
|
-
pos = getElementPosition({x: 123, y: 321});
|
|
62
|
-
is(pos.x, 123, 'passthrough x position');
|
|
63
|
-
is(pos.y, 321, 'passthrough y position');
|
|
64
|
-
|
|
65
|
-
// Coordinates object with relativeTo
|
|
66
|
-
pos = getElementPosition({x: 123, y: 321}, {x: 100, y: 50});
|
|
67
|
-
is(pos.x, 23, 'passthrough x position (using relativeTo parameter)');
|
|
68
|
-
is(pos.y, 271, 'passthrough y position (using relativeTo parameter)');
|
|
69
|
-
|
|
70
|
-
pos = getElementPosition('garbage');
|
|
71
|
-
is(typeof(pos), 'undefined',
|
|
72
|
-
'invalid element should return an undefined position');
|
|
73
|
-
|
|
74
|
-
// Only set one coordinate
|
|
75
|
-
setElementPosition('styleTest', {'x': 300});
|
|
76
|
-
pos = getElementPosition('styleTest');
|
|
77
|
-
is(pos.x, 300, 'updated only x position');
|
|
78
|
-
is(pos.y, 200, 'not updated y position');
|
|
79
|
-
|
|
80
|
-
var mc = MochiKit.Color.Color;
|
|
81
|
-
var red = mc.fromString('rgb(255,0,0)');
|
|
82
|
-
var color = null;
|
|
83
|
-
|
|
84
|
-
color = mc.fromString(getStyle('styleTest', 'background-color'));
|
|
85
|
-
is(color.toHexString(), red.toHexString(),
|
|
86
|
-
'test getStyle selector case');
|
|
87
|
-
|
|
88
|
-
color = mc.fromString(getStyle('styleTest', 'backgroundColor'));
|
|
89
|
-
is(color.toHexString(), red.toHexString(),
|
|
90
|
-
'test getStyle camel case');
|
|
91
|
-
|
|
92
|
-
is(getStyle('styleSubTest', 'font-size'), '10px',
|
|
93
|
-
'test computed getStyle selector case');
|
|
94
|
-
|
|
95
|
-
is(getStyle('styleSubTest', 'fontSize'), '10px',
|
|
96
|
-
'test computed getStyle camel case');
|
|
97
|
-
|
|
98
|
-
is(eval(getStyle('styleTest', 'opacity')), 0.5,
|
|
99
|
-
'test getStyle opacity');
|
|
100
|
-
|
|
101
|
-
is(getStyle('styleTest', 'opacity'), 0.5, 'test getOpacity');
|
|
102
|
-
|
|
103
|
-
setStyle('styleTest', {'opacity': 0.2});
|
|
104
|
-
is(getStyle('styleTest', 'opacity'), 0.2, 'test setOpacity');
|
|
105
|
-
|
|
106
|
-
setStyle('styleTest', {'opacity': 0});
|
|
107
|
-
is(getStyle('styleTest', 'opacity'), 0, 'test setOpacity');
|
|
108
|
-
|
|
109
|
-
setStyle('styleTest', {'opacity': 1});
|
|
110
|
-
var t = getStyle('styleTest', 'opacity');
|
|
111
|
-
ok(t > 0.999 && t <= 1, 'test setOpacity');
|
|
112
|
-
|
|
113
|
-
is(getStyle('floatTest', 'float'), "left", 'getStyle of float');
|
|
114
|
-
is(getStyle('floatTest', 'cssFloat'), "left", 'getStyle of cssFloat');
|
|
115
|
-
is(getStyle('floatTest', 'styleFloat'), "left", 'getStyle of styleFloat');
|
|
116
|
-
is(getStyle('styleTest', 'float'), "none", 'getStyle of float when unset');
|
|
117
|
-
|
|
118
|
-
setStyle('floatTest', { "float": "right" });
|
|
119
|
-
is(getStyle('floatTest', 'float'), "right", 'setStyle of CSS float');
|
|
120
|
-
is(getStyle('floatTest', 'cssFloat'), "right", 'setStyle of CSS cssFloat');
|
|
121
|
-
is(getStyle('floatTest', 'styleFloat'), "right", 'setStyle of CSS styleFloat');
|
|
122
|
-
|
|
123
|
-
var dims = getElementDimensions('styleTest');
|
|
124
|
-
is(dims.w, 166, 'getElementDimensions w ok');
|
|
125
|
-
is(dims.h, 124, 'getElementDimensions h ok');
|
|
126
|
-
|
|
127
|
-
dims = getElementDimensions('styleTest', true);
|
|
128
|
-
is(dims.w, 100, 'getElementDimensions content w ok');
|
|
129
|
-
is(dims.h, 80, 'getElementDimensions content h ok');
|
|
130
|
-
|
|
131
|
-
setElementDimensions('styleTest', {'w': 200, 'h': 150});
|
|
132
|
-
dims = getElementDimensions('styleTest', true);
|
|
133
|
-
is(dims.w, 200, 'setElementDimensions w ok');
|
|
134
|
-
is(dims.h, 150, 'setElementDimensions h ok');
|
|
135
|
-
|
|
136
|
-
setElementDimensions('styleTest', {'w': 150});
|
|
137
|
-
dims = getElementDimensions('styleTest', true);
|
|
138
|
-
is(dims.w, 150, 'setElementDimensions only w ok');
|
|
139
|
-
is(dims.h, 150, 'setElementDimensions h not updated ok');
|
|
140
|
-
|
|
141
|
-
hideElement('styleTest');
|
|
142
|
-
dims = getElementDimensions('styleTest', true);
|
|
143
|
-
is(dims.w, 150, 'getElementDimensions w ok when display none');
|
|
144
|
-
is(dims.h, 150, 'getElementDimensions h ok when display none');
|
|
145
|
-
|
|
146
|
-
dims = getElementDimensions('hideTest', true);
|
|
147
|
-
is(dims.w, 100, 'getElementDimensions w ok when CSS display none');
|
|
148
|
-
is(dims.h, 100, 'getElementDimensions h ok when CSS display none');
|
|
149
|
-
|
|
150
|
-
/* TODO: can we create a work-around for this case?
|
|
151
|
-
dims = getElementDimensions('innerHideTest', true);
|
|
152
|
-
is(dims.w, 10, 'getElementDimensions w ok when parent CSS display none');
|
|
153
|
-
is(dims.h, 10, 'getElementDimensions h ok when parent CSS display none');
|
|
154
|
-
*/
|
|
155
|
-
|
|
156
|
-
var elem = DIV();
|
|
157
|
-
appendChildNodes('styleTest', elem);
|
|
158
|
-
var before = elem.style.display;
|
|
159
|
-
getElementDimensions(elem);
|
|
160
|
-
var after = elem.style.display;
|
|
161
|
-
is(after, before, 'getElementDimensions modified element display');
|
|
162
|
-
|
|
163
|
-
dims = getViewportDimensions();
|
|
164
|
-
is(dims.w > 0, true, 'test getViewportDimensions w');
|
|
165
|
-
is(dims.h > 0, true, 'test getViewportDimensions h');
|
|
166
|
-
|
|
167
|
-
pos = getViewportPosition();
|
|
168
|
-
is(pos.x, 0, 'test getViewportPosition x');
|
|
169
|
-
is(pos.y, 0, 'test getViewportPosition y');
|
|
170
|
-
|
|
171
|
-
dims = getElementDimensions('testCell1', true);
|
|
172
|
-
is(dims.w, 80, 'default left table cell content w ok');
|
|
173
|
-
is(dims.h, 30, 'default left table cell content h ok');
|
|
174
|
-
dims = getElementDimensions('testCell2', true);
|
|
175
|
-
is(dims.w, 80, 'default middle table cell content w ok');
|
|
176
|
-
is(dims.h, 30, 'default middle table cell content h ok');
|
|
177
|
-
dims = getElementDimensions('testCell3', true);
|
|
178
|
-
is(dims.w, 80, 'default right table cell content w ok');
|
|
179
|
-
is(dims.h, 30, 'default right table cell content h ok');
|
|
180
|
-
|
|
181
|
-
setStyle('testTable', {'borderCollapse': 'collapse'});
|
|
182
|
-
dims = getElementDimensions('testCell1', true);
|
|
183
|
-
is(dims.w, 80, 'collapsed left table cell content w ok');
|
|
184
|
-
is(dims.h, 30, 'collapsed left table cell content h ok');
|
|
185
|
-
dims = getElementDimensions('testCell2', true);
|
|
186
|
-
is(dims.w, 80, 'collapsed middle table cell content w ok');
|
|
187
|
-
is(dims.h, 30, 'collapsed middle table cell content h ok');
|
|
188
|
-
dims = getElementDimensions('testCell3', true);
|
|
189
|
-
is(dims.w, 80, 'collapsed right table cell content w ok');
|
|
190
|
-
is(dims.h, 30, 'collapsed right table cell content h ok');
|
|
191
|
-
|
|
192
|
-
hideElement('testTable');
|
|
193
|
-
|
|
194
|
-
var overflow = makeClipping('styleTest');
|
|
195
|
-
is(getStyle('styleTest', 'overflow-x'), 'hidden', 'make clipping on overflow-x');
|
|
196
|
-
is(getStyle('styleTest', 'overflow-y'), 'hidden', 'make clipping on overflow-y');
|
|
197
|
-
|
|
198
|
-
undoClipping('styleTest', overflow);
|
|
199
|
-
is(getStyle('styleTest', 'overflow-x'), 'visible', 'undo clipping on overflow-x');
|
|
200
|
-
is(getStyle('styleTest', 'overflow-y'), 'hidden', 'undo clipping on overflow-y');
|
|
201
|
-
|
|
202
|
-
ok( true, "test suite finished!");
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
} catch (err) {
|
|
206
|
-
|
|
207
|
-
var s = "test suite failure!\n";
|
|
208
|
-
var o = {};
|
|
209
|
-
var k = null;
|
|
210
|
-
for (k in err) {
|
|
211
|
-
// ensure unique keys?!
|
|
212
|
-
if (!o[k]) {
|
|
213
|
-
s += k + ": " + err[k] + "\n";
|
|
214
|
-
o[k] = err[k];
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
ok ( false, s );
|
|
218
|
-
|
|
219
|
-
}
|
|
220
|
-
</script>
|
|
221
|
-
</pre>
|
|
222
|
-
</body>
|
|
223
|
-
</html>
|
|
@@ -1,197 +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/Async.js"></script>
|
|
7
|
-
<script type="text/javascript" src="../lib/MochiKit/Style.js"></script>
|
|
8
|
-
<script type="text/javascript" src="../lib/MochiKit/Color.js"></script>
|
|
9
|
-
<script type="text/javascript" src="../lib/MochiKit/Signal.js"></script>
|
|
10
|
-
<script type="text/javascript" src="../lib/MochiKit/Position.js"></script>
|
|
11
|
-
<script type="text/javascript" src="../lib/MochiKit/Visual.js"></script>
|
|
12
|
-
<script type="text/javascript" src="SimpleTest/SimpleTest.js"></script>
|
|
13
|
-
|
|
14
|
-
<link rel="stylesheet" type="text/css" href="SimpleTest/test.css">
|
|
15
|
-
<style type="text/css">
|
|
16
|
-
#elt1, #elt2, #ctn1 {
|
|
17
|
-
visibility: hidden;
|
|
18
|
-
font-size: 1em;
|
|
19
|
-
margin: 2px;
|
|
20
|
-
}
|
|
21
|
-
#elt3 {
|
|
22
|
-
display: none;
|
|
23
|
-
}
|
|
24
|
-
#ctn1 {
|
|
25
|
-
height: 2px;
|
|
26
|
-
}
|
|
27
|
-
</style>
|
|
28
|
-
</head>
|
|
29
|
-
<body>
|
|
30
|
-
|
|
31
|
-
<div id='elt1'>elt1</div>
|
|
32
|
-
<div id='ctn1'><div id='elt2'></div></div>
|
|
33
|
-
<div id='elt3'>elt3</div>
|
|
34
|
-
<pre id="test">
|
|
35
|
-
<script type="text/javascript">
|
|
36
|
-
try {
|
|
37
|
-
var TestQueue = function () {
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
TestQueue.prototype = new MochiKit.Visual.ScopedQueue();
|
|
41
|
-
|
|
42
|
-
MochiKit.Base.update(TestQueue.prototype, {
|
|
43
|
-
startLoop: function (func, interval) {
|
|
44
|
-
this.started = true;
|
|
45
|
-
var timePos = new Date().getTime();
|
|
46
|
-
while (this.started) {
|
|
47
|
-
timePos += interval;
|
|
48
|
-
MochiKit.Base.map(function (effect) {
|
|
49
|
-
effect.loop(timePos);
|
|
50
|
-
}, this.effects);
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
stopLoop: function () {
|
|
54
|
-
this.started = false;
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
var gl = new TestQueue();
|
|
59
|
-
MochiKit.Visual.Queues.instances['global'] = gl;
|
|
60
|
-
MochiKit.Visual.Queues.instances['elt1'] = gl;
|
|
61
|
-
MochiKit.Visual.Queues.instances['elt2'] = gl;
|
|
62
|
-
MochiKit.Visual.Queues.instances['elt3'] = gl;
|
|
63
|
-
MochiKit.Visual.Queues.instances['ctn1'] = gl;
|
|
64
|
-
MochiKit.Visual.Queue = gl;
|
|
65
|
-
|
|
66
|
-
pulsate("elt1", {afterFinish: function () {
|
|
67
|
-
is(getElement('elt1').style.display != 'none', true, "pulsate ok");
|
|
68
|
-
}});
|
|
69
|
-
|
|
70
|
-
pulsate("elt1", {pulses: 2, afterFinish: function () {
|
|
71
|
-
is(getElement('elt1').style.display != 'none', true, "pulsate with numbered pulses ok");
|
|
72
|
-
}});
|
|
73
|
-
|
|
74
|
-
shake("elt1", {afterFinish: function () {
|
|
75
|
-
is(getElement('elt1').style.display != 'none', true, "shake ok");
|
|
76
|
-
}});
|
|
77
|
-
|
|
78
|
-
fade("elt1", {afterFinish: function () {
|
|
79
|
-
is(getElement('elt1').style.display, 'none', "fade ok");
|
|
80
|
-
}});
|
|
81
|
-
|
|
82
|
-
appear("elt1", {afterFinish: function () {
|
|
83
|
-
is(getElement('elt1').style.display != 'none', true, "appear ok");
|
|
84
|
-
}});
|
|
85
|
-
|
|
86
|
-
toggle("elt1", "size", {afterFinish: function () {
|
|
87
|
-
is(getElement('elt1').style.display, 'none', "toggle size ok");
|
|
88
|
-
}});
|
|
89
|
-
|
|
90
|
-
toggle("elt1", "size", {afterFinish: function () {
|
|
91
|
-
is(getElement('elt1').style.display != 'none', true, "toggle size reverse ok");
|
|
92
|
-
}});
|
|
93
|
-
|
|
94
|
-
Morph("elt1", {"style": {"font-size": "2em"}, afterFinish: function () {
|
|
95
|
-
is(getStyle("elt1", "font-size"), "2em", "Morph OK");
|
|
96
|
-
}});
|
|
97
|
-
|
|
98
|
-
Morph("elt1", {"style": {"font-size": "1em", "margin-left": "4px"}, afterFinish: function () {
|
|
99
|
-
is(getStyle("elt1", "font-size"), "1em", "Morph multiple (font) OK");
|
|
100
|
-
is(getStyle("elt1", "margin-left"), "4px", "Morph multiple (margin) OK");
|
|
101
|
-
}});
|
|
102
|
-
|
|
103
|
-
Morph("elt1", {"style": {"font-style": "italic"}, afterFinish: function () {
|
|
104
|
-
is(getStyle("elt1", "font-style"), "italic", "Morph generic property OK");
|
|
105
|
-
}});
|
|
106
|
-
|
|
107
|
-
switchOff("elt1", {afterFinish: function () {
|
|
108
|
-
is(getElement('elt1').style.display, 'none', "switchOff ok");
|
|
109
|
-
}});
|
|
110
|
-
|
|
111
|
-
grow("elt1", {afterFinish: function () {
|
|
112
|
-
is(getElement('elt1').style.display != 'none', true, "grow ok");
|
|
113
|
-
}});
|
|
114
|
-
|
|
115
|
-
shrink("elt1", {afterFinish: function () {
|
|
116
|
-
is(getElement('elt1').style.display, 'none', "shrink ok");
|
|
117
|
-
}});
|
|
118
|
-
|
|
119
|
-
showElement('elt1');
|
|
120
|
-
dropOut("elt1", {afterFinish: function () {
|
|
121
|
-
is(getElement('elt1').style.display, 'none', "dropOut ok");
|
|
122
|
-
}});
|
|
123
|
-
|
|
124
|
-
showElement('elt1');
|
|
125
|
-
puff("elt1", {afterFinish: function () {
|
|
126
|
-
is(getElement('elt1').style.display, 'none', "puff ok");
|
|
127
|
-
}});
|
|
128
|
-
|
|
129
|
-
showElement('elt1');
|
|
130
|
-
fold("elt1", {afterFinish: function () {
|
|
131
|
-
is(getElement('elt1').style.display, 'none', "fold ok");
|
|
132
|
-
}});
|
|
133
|
-
|
|
134
|
-
showElement('elt1');
|
|
135
|
-
squish("elt1", {afterFinish: function () {
|
|
136
|
-
is(getElement('elt1').style.display, 'none', "squish ok");
|
|
137
|
-
}});
|
|
138
|
-
|
|
139
|
-
slideUp("ctn1", {afterFinish: function () {
|
|
140
|
-
is(getElement('ctn1').style.display, 'none', "slideUp ok");
|
|
141
|
-
}});
|
|
142
|
-
|
|
143
|
-
slideDown("ctn1", {afterFinish: function () {
|
|
144
|
-
is(getElement('ctn1').style.display != 'none', true, "slideDown ok");
|
|
145
|
-
}});
|
|
146
|
-
|
|
147
|
-
blindDown("ctn1", {afterFinish: function () {
|
|
148
|
-
is(getElement('ctn1').style.display != 'none', true, "blindDown ok");
|
|
149
|
-
}});
|
|
150
|
-
|
|
151
|
-
blindUp("ctn1", {afterFinish: function () {
|
|
152
|
-
is(getElement('ctn1').style.display, 'none', "blindUp ok");
|
|
153
|
-
}});
|
|
154
|
-
|
|
155
|
-
multiple(["elt1", "ctn1"], appear, {afterFinish: function (effect) {
|
|
156
|
-
is(effect.element.style.display != 'none', true, "multiple ok");
|
|
157
|
-
}});
|
|
158
|
-
|
|
159
|
-
toggle("elt3", "size", {afterFinish: function () {
|
|
160
|
-
is(getElement('elt3').style.display != 'none', true, "toggle with css ok");
|
|
161
|
-
}});
|
|
162
|
-
|
|
163
|
-
toggle("elt3", "size", {afterFinish: function () {
|
|
164
|
-
is(getElement('elt3').style.display, 'none', "toggle with css ok");
|
|
165
|
-
}});
|
|
166
|
-
|
|
167
|
-
var toTests = [roundElement, roundClass, tagifyText, Opacity, Move, Highlight, ScrollTo, Morph];
|
|
168
|
-
for (var m in toTests) {
|
|
169
|
-
toTests[m]("elt1");
|
|
170
|
-
ok(true, toTests[m].NAME + " doesn't need 'new' keyword");
|
|
171
|
-
}
|
|
172
|
-
Scale("elt1", 1);
|
|
173
|
-
ok(true, "Scale doesn't need 'new' keyword");
|
|
174
|
-
|
|
175
|
-
ok(true, "visual suite finished");
|
|
176
|
-
|
|
177
|
-
} catch (err) {
|
|
178
|
-
|
|
179
|
-
var s = "test suite failure!\n";
|
|
180
|
-
var o = {};
|
|
181
|
-
var k = null;
|
|
182
|
-
for (k in err) {
|
|
183
|
-
// ensure unique keys?!
|
|
184
|
-
if (!o[k]) {
|
|
185
|
-
s += k + ": " + err[k] + "\n";
|
|
186
|
-
o[k] = err[k];
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
ok ( false, s );
|
|
190
|
-
SimpleTest.finish();
|
|
191
|
-
|
|
192
|
-
}
|
|
193
|
-
</script>
|
|
194
|
-
</pre>
|
|
195
|
-
</body>
|
|
196
|
-
</html>
|
|
197
|
-
|