old_sql 1.12.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- data/public/javascripts/old_sql/MochiKit-1.4.2/Changes +362 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/LICENSE.txt +69 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/MANIFEST +179 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/META.json +17 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Async.html +814 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Base.html +1703 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Color.html +755 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DOM.html +1197 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DateTime.html +168 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DragAndDrop.html +187 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Format.html +300 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Iter.html +524 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Logging.html +420 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/LoggingPane.html +142 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Position.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Selector.html +240 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Signal.html +508 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Sortable.html +244 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Style.html +385 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/VersionHistory.html +384 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Visual.html +1161 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/index.html +447 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/js/toc.js +113 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Async.rst +767 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Base.rst +1445 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Color.rst +651 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DOM.rst +1143 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DateTime.rst +145 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DragAndDrop.rst +197 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Format.rst +258 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Iter.rst +454 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Logging.rst +348 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst +128 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Position.rst +26 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Selector.rst +203 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Signal.rst +498 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Sortable.rst +186 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Style.rst +353 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/VersionHistory.rst +362 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Visual.rst +895 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/index.rst +83 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.css +69 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.js +401 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.json +10 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.xml +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/index.html +96 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.css +4 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.js +95 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/index.html +31 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dnd_sortable.css +23 -0
- 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 +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable2_test.html +150 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable3_test.html +42 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable4_test.html +90 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable5_test.html +29 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_test.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_tree_test.html +189 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.css +28 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.js +73 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/index.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_bigslide.html +36 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blind.html +65 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blindslide.html +31 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_combi.css +18 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_fadeappear.html +61 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_grow_shrink.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_onload.html +67 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue.html +67 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue_limit.html +30 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_scroll.html +483 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_slide.html +62 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/full.html +71 -0
- 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 +150 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/index.html +88 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.css +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.js +373 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/index.html +78 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.css +5 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.js +85 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/index.html +46 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.css +78 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.js +11 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/index.html +74 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.css +73 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.js +125 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/index.html +88 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.css +17 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.js +59 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/index.html +28 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.css +3 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.js +19 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_boxes.html +45 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_full.html +119 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_ghost.html +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_hoverclass.html +43 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_scroll.html +91 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_snap.html +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/index.html +93 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/simple_dnd.css +64 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/index.html +71 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.css +66 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.js +203 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/SyntaxHighlighter.css +177 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html +339 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushCSharp.js +30 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushDelphi.js +31 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushJScript.js +22 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPhp.js +23 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPython.js +71 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushSql.js +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushVb.js +29 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushXml.js +61 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shCore.js +622 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.css +1 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.html +19 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.js +70 -0
- 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 +130 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/general.css +48 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Async.js +682 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Base.js +1489 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Color.js +863 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DOM.js +1256 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DateTime.js +222 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DragAndDrop.js +793 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Format.js +304 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Iter.js +844 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Logging.js +315 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/LoggingPane.js +353 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js +188 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MockDOM.js +115 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Position.js +236 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Selector.js +415 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Signal.js +897 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Sortable.js +589 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Style.js +594 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Test.js +162 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Visual.js +2026 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/__package__.js +18 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/MochiKit.js +7829 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/__package__.js +6 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/customize.html +251 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/FakeJSAN.js +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/SimpleTest.js +381 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/TestRunner.js +159 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/test.css +28 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/cli.js +6 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/index.html +25 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/standalone.js +16 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Base.js +577 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Color.js +137 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DateTime.js +52 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DragAndDrop.js +30 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Format.js +89 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Iter.js +186 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Logging.js +88 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.html +408 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.json +1 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Base.html +34 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Color.html +84 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM-Safari.html +48 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM.html +363 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DateTime.html +39 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DragAndDrop.html +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Format.html +39 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Iter.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-JSAN.html +32 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Logging.html +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-MochiKit.html +18 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Selector.html +295 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Signal.html +43 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Style.html +223 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Visual.html +197 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Signal.js +481 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/COPYING +28 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Base.js +406 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Canvas.js +683 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/EasyPlot.js +161 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Layout.js +756 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit.js +151 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit_Packed.js +2177 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SVG.js +705 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js +348 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetSVG.js +247 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/dummy.svg +9 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/excanvas.js +723 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/README +1 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.html +2 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.txt +2 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.html +302 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.txt +139 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.html +172 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.txt +81 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.html +155 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.txt +50 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.html +428 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.txt +330 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.html +368 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.txt +256 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.html +436 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.txt +299 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.html +159 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.txt +64 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.html +131 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.txt +34 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.html +131 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.txt +34 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.html +334 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.txt +151 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.html +304 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.txt +144 -0
- 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 +62 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/generate.py +37 -0
- 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 +58 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/axis.html +31 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.html +25 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.js +143 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/debug.html +56 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.html +58 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.js +133 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.html +57 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.js +136 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/dynamic.html +161 -0
- 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 +38 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels.html +43 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/prototype_compat.html +28 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-easy.html +29 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-horiz.html +53 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-neg.html +29 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-svg.html +61 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart.html +57 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sample.txt +6 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.html +29 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.js +141 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.html +26 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.js +147 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.html +24 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.js +89 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/tests.css +66 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.html +20 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.js +31 -0
- metadata +264 -2
@@ -0,0 +1,29 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
4
|
+
<head>
|
5
|
+
<title>PlotKit: SVGRenderer Test</title>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
7
|
+
<link href="/css/page.css" media="screen" rel="Stylesheet" type="text/css" />
|
8
|
+
<link href="tests.css" media="screen" rel="Stylesheet" type="text/css" />
|
9
|
+
<script src="/js/mochi/MochiKit.js" type="text/javascript"></script>
|
10
|
+
<script src="/js/plotkit/Base.js" type="text/javascript"></script>
|
11
|
+
<script src="/js/plotkit/Layout.js" type="text/javascript"></script>
|
12
|
+
<script src="/js/plotkit/SVG.js" type="text/javascript"></script>
|
13
|
+
<script src="/js/plotkit/SweetSVG.js" type="text/javascript"></script>
|
14
|
+
<script src="/js/plotkit-tests/svg-sweet.js" type="text/javascript"></script>
|
15
|
+
|
16
|
+
<!-- START Required for IE to support inlined SVG -->
|
17
|
+
<object id="AdobeSVG" classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2" width="1" height="1"></object>
|
18
|
+
<?import namespace="svg" implementation="#AdobeSVG"?>
|
19
|
+
<!-- END Required for IE to support inlined SVG -->
|
20
|
+
|
21
|
+
</head>
|
22
|
+
|
23
|
+
<body>
|
24
|
+
<div id="body">
|
25
|
+
<h2>SVG Renderer Tests</h2>
|
26
|
+
<div id="tests"></div>
|
27
|
+
<div class="footer"><a href="http://www.liquidx.net/plotkit/">PlotKit</a></div>
|
28
|
+
</div>
|
29
|
+
</body></html>
|
@@ -0,0 +1,141 @@
|
|
1
|
+
/* actual tests */
|
2
|
+
|
3
|
+
var options = {
|
4
|
+
"axisLabelUseDiv": false
|
5
|
+
};
|
6
|
+
MochiKit.Base.update(options, PlotKit.Base.officeBlue());
|
7
|
+
|
8
|
+
|
9
|
+
function genericTest(num, plotStyle) {
|
10
|
+
var l = new PlotKit.Layout(plotStyle, {});
|
11
|
+
var success = l.addDatasetFromTable("data" + num, $("test" + num));
|
12
|
+
l.evaluate();
|
13
|
+
var c = $("test" + num + "canvas");
|
14
|
+
var g = new PlotKit.SweetSVGRenderer(c, l, options);
|
15
|
+
g.render();
|
16
|
+
}
|
17
|
+
|
18
|
+
function genericTestAndClear(num, plotStyle) {
|
19
|
+
var l = new PlotKit.Layout(plotStyle, {});
|
20
|
+
l.addDatasetFromTable("data" + num, $("test" + num));
|
21
|
+
l.evaluate();
|
22
|
+
var c = $("test" + num + "canvas");
|
23
|
+
var g = new PlotKit.SweetSVGRenderer(c, l, options);
|
24
|
+
g.render();
|
25
|
+
g.clear();
|
26
|
+
}
|
27
|
+
|
28
|
+
function dualDataSet(num, plotStyle) {
|
29
|
+
var l = new PlotKit.Layout(plotStyle, {});
|
30
|
+
l.addDatasetFromTable("data1." + num, $("test" + num), 0, 1);
|
31
|
+
l.addDatasetFromTable("data2." + num, $("test" + num), 0, 2);
|
32
|
+
l.evaluate();
|
33
|
+
var c = $("test" + num + "canvas");
|
34
|
+
var g = new PlotKit.SweetSVGRenderer(c, l, options);
|
35
|
+
g.render();
|
36
|
+
}
|
37
|
+
|
38
|
+
|
39
|
+
/* create HTML for tests */
|
40
|
+
|
41
|
+
function makeTableRow(list) {
|
42
|
+
return TR({}, map(partial(TD, null), list));
|
43
|
+
}
|
44
|
+
|
45
|
+
function generateTestTable(num, data) {
|
46
|
+
var tableid = "test" + num;
|
47
|
+
var tablehead = THEAD(null, map(makeTableRow, [["x", "y"]]));
|
48
|
+
var tablebody = TBODY(null, map(makeTableRow, data));
|
49
|
+
|
50
|
+
var table = TABLE({"class": "data", "id": tableid}, [tablehead, tablebody]);
|
51
|
+
return table;
|
52
|
+
}
|
53
|
+
|
54
|
+
function generateCanvas(num) {
|
55
|
+
var canvasid = "test" + num + "canvas";
|
56
|
+
var canvasopts = {
|
57
|
+
"id": canvasid,
|
58
|
+
"width": 400,
|
59
|
+
"height": 200,
|
60
|
+
"version": "1.1",
|
61
|
+
"baseProfile": "full"
|
62
|
+
};
|
63
|
+
|
64
|
+
var canvas = PlotKit.SVGRenderer.SVG(canvasopts, "");
|
65
|
+
return canvas
|
66
|
+
}
|
67
|
+
|
68
|
+
function generateUnitTest(num, func, data, type, desc) {
|
69
|
+
var table = DIV({"class": "data"}, generateTestTable(num, data));
|
70
|
+
var canvas = DIV({"class": "canvas"}, generateCanvas(num));
|
71
|
+
var ending = DIV({"class":"ending"}, desc);
|
72
|
+
|
73
|
+
addLoadEvent(partial(func, num, type));
|
74
|
+
|
75
|
+
return DIV({"class": "unit"}, [table, canvas, ending]);
|
76
|
+
return DIV({"class": "unit"}, [table, ending]);
|
77
|
+
}
|
78
|
+
|
79
|
+
function generateTests() {
|
80
|
+
var tests = $('tests');
|
81
|
+
|
82
|
+
// datasets
|
83
|
+
var simpleData1 = [[0, 0], [1, 1], [2, 2], [3, 3]];
|
84
|
+
var simpleData2 = [[1, 2], [2, 3], [3, 4], [4, 5]];
|
85
|
+
var singleData = [[1, 1]];
|
86
|
+
|
87
|
+
var ninety = [[1, 9], [2, 1]];
|
88
|
+
|
89
|
+
var floatData1 = [[0, 0.5], [1, 0.4], [2, 0.3]];
|
90
|
+
var missingData = [[0, 1], [1, 4], [3, 16], [5, 17]];
|
91
|
+
|
92
|
+
var dualData = [[0,0,0], [1,2,1], [2,4,4], [3,8,9], [4,16,16], [5,32,25], [6, 64, 36], [7, 128, 49]];
|
93
|
+
|
94
|
+
tests.appendChild(H2(null, "Simple Tests"));
|
95
|
+
|
96
|
+
tests.appendChild(generateUnitTest(1, genericTest, simpleData1, "bar", ""));
|
97
|
+
tests.appendChild(generateUnitTest(2, genericTest, simpleData1,
|
98
|
+
"line", ""));
|
99
|
+
tests.appendChild(generateUnitTest(3, genericTest, simpleData2,
|
100
|
+
"pie", ""));
|
101
|
+
|
102
|
+
tests.appendChild(H2(null, "One Value Set"));
|
103
|
+
|
104
|
+
tests.appendChild(generateUnitTest(4, genericTest, singleData,
|
105
|
+
"bar", ""));
|
106
|
+
tests.appendChild(generateUnitTest(5, genericTest, singleData,
|
107
|
+
"line", ""));
|
108
|
+
tests.appendChild(generateUnitTest(6, genericTest, singleData,
|
109
|
+
"pie", ""));
|
110
|
+
|
111
|
+
tests.appendChild(H2(null, "Float Values Set"));
|
112
|
+
tests.appendChild(generateUnitTest(7, genericTest, floatData1,
|
113
|
+
"bar", ""));
|
114
|
+
tests.appendChild(generateUnitTest(8, genericTest, floatData1,
|
115
|
+
"line", ""));
|
116
|
+
tests.appendChild(generateUnitTest(9, genericTest, floatData1,
|
117
|
+
"pie", ""));
|
118
|
+
|
119
|
+
tests.appendChild(H2(null, "Dual Value Set"));
|
120
|
+
tests.appendChild(generateUnitTest(10, dualDataSet, dualData,
|
121
|
+
"bar", ""));
|
122
|
+
tests.appendChild(generateUnitTest(11, dualDataSet, dualData,
|
123
|
+
"line", ""));
|
124
|
+
|
125
|
+
tests.appendChild(H2(null, "Drawing and Clearing"));
|
126
|
+
tests.appendChild(generateUnitTest(12, genericTest, floatData1,
|
127
|
+
"bar", ""));
|
128
|
+
tests.appendChild(generateUnitTest(13, genericTestAndClear, floatData1,
|
129
|
+
"bar", ""));
|
130
|
+
tests.appendChild(generateUnitTest(14, genericTest, floatData1,
|
131
|
+
"pie", ""));
|
132
|
+
tests.appendChild(generateUnitTest(15, genericTestAndClear, floatData1,
|
133
|
+
"pie", ""));
|
134
|
+
|
135
|
+
tests.appendChild(H2(null, "Testing Circle Drawing"));
|
136
|
+
|
137
|
+
tests.appendChild(generateUnitTest(16, genericTest, ninety,
|
138
|
+
"pie", ""));
|
139
|
+
}
|
140
|
+
|
141
|
+
addLoadEvent(generateTests);
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
4
|
+
<head>
|
5
|
+
<title>PlotKit: SVGRenderer Test</title>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
7
|
+
<link href="/css/page.css" media="screen" rel="Stylesheet" type="text/css" />
|
8
|
+
<link href="tests.css" media="screen" rel="Stylesheet" type="text/css" />
|
9
|
+
<script src="/js/mochi/MochiKit.js" type="text/javascript"></script>
|
10
|
+
<script src="/js/plotkit-svn/PlotKit_Packed.js" type="text/javascript"></script>
|
11
|
+
<script src="/js/plotkit-tests/svg.js" type="text/javascript"></script>
|
12
|
+
|
13
|
+
<!-- START Required for IE to support inlined SVG -->
|
14
|
+
<object id="AdobeSVG" classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2" width="1" height="1"></object>
|
15
|
+
<?import namespace="svg" implementation="#AdobeSVG"?>
|
16
|
+
<!-- END Required for IE to support inlined SVG -->
|
17
|
+
|
18
|
+
</head>
|
19
|
+
|
20
|
+
<body>
|
21
|
+
<div id="body">
|
22
|
+
<h2>SVG Renderer Tests</h2>
|
23
|
+
<div id="tests"></div>
|
24
|
+
<div class="footer"><a href="http://www.liquidx.net/plotkit/">PlotKit</a></div>
|
25
|
+
</div>
|
26
|
+
</body></html>
|
@@ -0,0 +1,147 @@
|
|
1
|
+
/* actual tests */
|
2
|
+
|
3
|
+
var options = {
|
4
|
+
"axisLineWidth": 2.0,
|
5
|
+
"axisLabelColor": Color.grayColor(),
|
6
|
+
"axisLineColor": Color.blackColor(),
|
7
|
+
"padding": {top: 5, bottom: 20, left: 40, right: 10},
|
8
|
+
"backgroundColor": Color.whiteColor(),
|
9
|
+
"strokeColor": null,
|
10
|
+
"axisLabelUseDiv": false
|
11
|
+
};
|
12
|
+
|
13
|
+
function genericTest(num, plotStyle) {
|
14
|
+
var l = new PlotKit.Layout(plotStyle, {});
|
15
|
+
var success = l.addDatasetFromTable("data" + num, $("test" + num));
|
16
|
+
l.evaluate();
|
17
|
+
var c = $("test" + num + "canvas");
|
18
|
+
var g = new PlotKit.SVGRenderer(c, l, options);
|
19
|
+
g.render();
|
20
|
+
}
|
21
|
+
|
22
|
+
function genericTestAndClear(num, plotStyle) {
|
23
|
+
var l = new PlotKit.Layout(plotStyle, {});
|
24
|
+
l.addDatasetFromTable("data" + num, $("test" + num));
|
25
|
+
l.evaluate();
|
26
|
+
var c = $("test" + num + "canvas");
|
27
|
+
var g = new PlotKit.SVGRenderer(c, l, {});
|
28
|
+
g.render();
|
29
|
+
g.clear();
|
30
|
+
}
|
31
|
+
|
32
|
+
function dualDataSet(num, plotStyle) {
|
33
|
+
var l = new PlotKit.Layout(plotStyle, {});
|
34
|
+
l.addDatasetFromTable("data1." + num, $("test" + num), 0, 1);
|
35
|
+
l.addDatasetFromTable("data2." + num, $("test" + num), 0, 2);
|
36
|
+
l.evaluate();
|
37
|
+
var c = $("test" + num + "canvas");
|
38
|
+
var g = new PlotKit.SVGRenderer(c, l, options);
|
39
|
+
g.render();
|
40
|
+
}
|
41
|
+
|
42
|
+
|
43
|
+
/* create HTML for tests */
|
44
|
+
|
45
|
+
function makeTableRow(list) {
|
46
|
+
return TR({}, map(partial(TD, null), list));
|
47
|
+
}
|
48
|
+
|
49
|
+
function generateTestTable(num, data) {
|
50
|
+
var tableid = "test" + num;
|
51
|
+
var tablehead = THEAD(null, map(makeTableRow, [["x", "y"]]));
|
52
|
+
var tablebody = TBODY(null, map(makeTableRow, data));
|
53
|
+
|
54
|
+
var table = TABLE({"class": "data", "id": tableid}, [tablehead, tablebody]);
|
55
|
+
return table;
|
56
|
+
}
|
57
|
+
|
58
|
+
function generateCanvas(num) {
|
59
|
+
var canvasid = "test" + num + "canvas";
|
60
|
+
var canvasopts = {
|
61
|
+
"id": canvasid,
|
62
|
+
"width": 400,
|
63
|
+
"height": 200,
|
64
|
+
"version": "1.1",
|
65
|
+
"baseProfile": "full"
|
66
|
+
};
|
67
|
+
|
68
|
+
var canvas = PlotKit.SVGRenderer.SVG(canvasopts, "");
|
69
|
+
return canvas
|
70
|
+
}
|
71
|
+
|
72
|
+
function generateUnitTest(num, func, data, type, desc) {
|
73
|
+
var table = DIV({"class": "data"}, generateTestTable(num, data));
|
74
|
+
var canvas = DIV({"class": "canvas"}, generateCanvas(num));
|
75
|
+
var ending = DIV({"class":"ending"}, desc);
|
76
|
+
|
77
|
+
addLoadEvent(partial(func, num, type));
|
78
|
+
|
79
|
+
return DIV({"class": "unit"}, [table, canvas, ending]);
|
80
|
+
return DIV({"class": "unit"}, [table, ending]);
|
81
|
+
}
|
82
|
+
|
83
|
+
function generateTests() {
|
84
|
+
var tests = $('tests');
|
85
|
+
|
86
|
+
// datasets
|
87
|
+
var simpleData1 = [[0, 0], [1, 1], [2, 2], [3, 3]];
|
88
|
+
var simpleData2 = [[1, 2], [2, 3], [3, 4], [4, 5]];
|
89
|
+
var singleData = [[1, 1]];
|
90
|
+
|
91
|
+
var ninety = [[1, 9], [2, 1]];
|
92
|
+
|
93
|
+
var floatData1 = [[0, 0.5], [1, 0.4], [2, 0.3]];
|
94
|
+
var missingData = [[0, 1], [1, 4], [3, 16], [5, 17]];
|
95
|
+
|
96
|
+
var dualData = [[0,0,0], [1,2,1], [2,4,4], [3,8,9], [4,16,16], [5,32,25], [6, 64, 36], [7, 128, 49]];
|
97
|
+
|
98
|
+
tests.appendChild(H2(null, "Simple Tests"));
|
99
|
+
|
100
|
+
tests.appendChild(generateUnitTest(1, genericTest, simpleData1, "bar", ""));
|
101
|
+
|
102
|
+
tests.appendChild(generateUnitTest(2, genericTest, simpleData1,
|
103
|
+
"line", ""));
|
104
|
+
tests.appendChild(generateUnitTest(3, genericTest, simpleData2,
|
105
|
+
"pie", ""));
|
106
|
+
|
107
|
+
tests.appendChild(H2(null, "One Value Set"));
|
108
|
+
|
109
|
+
tests.appendChild(generateUnitTest(4, genericTest, singleData,
|
110
|
+
"bar", ""));
|
111
|
+
tests.appendChild(generateUnitTest(5, genericTest, singleData,
|
112
|
+
"line", ""));
|
113
|
+
tests.appendChild(generateUnitTest(6, genericTest, singleData,
|
114
|
+
"pie", ""));
|
115
|
+
|
116
|
+
tests.appendChild(H2(null, "Float Values Set"));
|
117
|
+
tests.appendChild(generateUnitTest(7, genericTest, floatData1,
|
118
|
+
"bar", ""));
|
119
|
+
tests.appendChild(generateUnitTest(8, genericTest, floatData1,
|
120
|
+
"line", ""));
|
121
|
+
tests.appendChild(generateUnitTest(9, genericTest, floatData1,
|
122
|
+
"pie", ""));
|
123
|
+
|
124
|
+
tests.appendChild(H2(null, "Dual Value Set"));
|
125
|
+
tests.appendChild(generateUnitTest(10, dualDataSet, dualData,
|
126
|
+
"bar", ""));
|
127
|
+
tests.appendChild(generateUnitTest(11, dualDataSet, dualData,
|
128
|
+
"line", ""));
|
129
|
+
|
130
|
+
tests.appendChild(H2(null, "Drawing and Clearing"));
|
131
|
+
tests.appendChild(generateUnitTest(12, genericTest, floatData1,
|
132
|
+
"bar", ""));
|
133
|
+
tests.appendChild(generateUnitTest(13, genericTestAndClear, floatData1,
|
134
|
+
"bar", ""));
|
135
|
+
tests.appendChild(generateUnitTest(14, genericTest, floatData1,
|
136
|
+
"pie", ""));
|
137
|
+
tests.appendChild(generateUnitTest(15, genericTestAndClear, floatData1,
|
138
|
+
"pie", ""));
|
139
|
+
|
140
|
+
tests.appendChild(H2(null, "Testing Circle Drawing"));
|
141
|
+
|
142
|
+
tests.appendChild(generateUnitTest(16, genericTest, ninety,
|
143
|
+
"pie", ""));
|
144
|
+
|
145
|
+
}
|
146
|
+
|
147
|
+
addLoadEvent(generateTests);
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
3
|
+
<head>
|
4
|
+
<title>PlotKit: SweetCanvasRenderer Test</title>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
+
<link href="/css/page.css" media="screen" rel="Stylesheet"
|
7
|
+
type="text/css" />
|
8
|
+
<link href="tests.css" media="screen" rel="Stylesheet" type="text/css" />
|
9
|
+
<script src="/js/mochi/MochiKit.js" type="text/javascript"></script>
|
10
|
+
<script src="/js/plotkit-svn/excanvas.js" type="text/javascript"></script>
|
11
|
+
<script src="/js/plotkit-svn/PlotKit_Packed.js" type="text/javascript"></script>
|
12
|
+
<script src="/js/plotkit-tests/sweet.js" type="text/javascript"></script>
|
13
|
+
</head>
|
14
|
+
|
15
|
+
<body>
|
16
|
+
<div id="body">
|
17
|
+
<h2>Sweet Canvas Renderer Tests</h2>
|
18
|
+
|
19
|
+
<div id="tests">
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<div class="footer"><a href="http://www.liquidx.net/plotkit/">PlotKit</a></div>
|
23
|
+
</div>
|
24
|
+
</body></html>
|
@@ -0,0 +1,89 @@
|
|
1
|
+
/* actual tests */
|
2
|
+
|
3
|
+
var opts = {
|
4
|
+
"enableEvents": false
|
5
|
+
};
|
6
|
+
|
7
|
+
function genericTest(num, plotStyle) {
|
8
|
+
var l = new PlotKit.Layout(plotStyle, {});
|
9
|
+
var success = l.addDatasetFromTable("data" + num, $("test" + num));
|
10
|
+
l.evaluate();
|
11
|
+
var c = $("test" + num + "canvas");
|
12
|
+
var g = new PlotKit.SweetCanvasRenderer(c, l, opts);
|
13
|
+
g.render();
|
14
|
+
}
|
15
|
+
|
16
|
+
function dualDataSet(num, plotStyle) {
|
17
|
+
var l = new PlotKit.Layout(plotStyle, {});
|
18
|
+
l.addDatasetFromTable("data1." + num, $("test" + num), 0, 1);
|
19
|
+
l.addDatasetFromTable("data2." + num, $("test" + num), 0, 2);
|
20
|
+
l.evaluate();
|
21
|
+
var c = $("test" + num + "canvas");
|
22
|
+
var g = new PlotKit.SweetCanvasRenderer(c, l, opts);
|
23
|
+
g.render();
|
24
|
+
}
|
25
|
+
|
26
|
+
|
27
|
+
/* create HTML for tests */
|
28
|
+
|
29
|
+
function makeTableRow(list) {
|
30
|
+
return TR({}, map(partial(TD, null), list));
|
31
|
+
}
|
32
|
+
|
33
|
+
function generateTestTable(num, data) {
|
34
|
+
var tableid = "test" + num;
|
35
|
+
var tablehead = THEAD(null, map(makeTableRow, [["x", "y"]]));
|
36
|
+
var tablebody = TBODY(null, map(makeTableRow, data));
|
37
|
+
|
38
|
+
var table = TABLE({"class": "data", "id": tableid}, [tablehead, tablebody]);
|
39
|
+
return table;
|
40
|
+
}
|
41
|
+
|
42
|
+
function generateCanvas(num) {
|
43
|
+
var canvasid = "test" + num + "canvas";
|
44
|
+
var canvas = CANVAS({"id":canvasid, "width": "400", "height": "200"}, "");
|
45
|
+
return canvas
|
46
|
+
}
|
47
|
+
|
48
|
+
function generateUnitTest(num, func, data, type, desc) {
|
49
|
+
var table = DIV({"class": "data"}, generateTestTable(num, data));
|
50
|
+
var canvas = DIV({"class": "canvas"}, generateCanvas(num));
|
51
|
+
var ending = DIV({"class":"ending"}, desc);
|
52
|
+
|
53
|
+
addLoadEvent(partial(func, num, type));
|
54
|
+
|
55
|
+
return DIV({"class": "unit"}, [table, canvas, ending]);
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
function generateTests() {
|
60
|
+
var tests = $('tests');
|
61
|
+
|
62
|
+
// datasets
|
63
|
+
var simpleData1 = [[0, 0], [1, 1], [2, 2], [3, 3]];
|
64
|
+
var simpleData2 = [[1, 2], [2, 3], [3, 4], [4, 5]];
|
65
|
+
var singleData = [[1, 1]];
|
66
|
+
|
67
|
+
var floatData1 = [[0, 0.5], [1, 0.4], [2, 0.3]];
|
68
|
+
var missingData = [[0, 1], [1, 4], [3, 16], [5, 17]];
|
69
|
+
|
70
|
+
var dualData = [[0,0,0], [1,2,1], [2,4,4], [3,8,9], [4,16,16], [5,32,25], [6, 64, 36], [7, 128, 49]];
|
71
|
+
|
72
|
+
tests.appendChild(H2(null, "Simple Tests"));
|
73
|
+
|
74
|
+
tests.appendChild(generateUnitTest(1, genericTest, simpleData1,
|
75
|
+
"bar", ""));
|
76
|
+
tests.appendChild(generateUnitTest(2, dualDataSet, dualData,
|
77
|
+
"bar", ""));
|
78
|
+
|
79
|
+
tests.appendChild(generateUnitTest(3, genericTest, simpleData1,
|
80
|
+
"line", ""));
|
81
|
+
tests.appendChild(generateUnitTest(4, dualDataSet, dualData,
|
82
|
+
"line", ""));
|
83
|
+
|
84
|
+
tests.appendChild(generateUnitTest(5, genericTest, simpleData1,
|
85
|
+
"pie", ""));
|
86
|
+
|
87
|
+
}
|
88
|
+
|
89
|
+
addLoadEvent(generateTests);
|
@@ -0,0 +1,66 @@
|
|
1
|
+
table#dynamicTable {
|
2
|
+
margin: 10px auto 10px auto;
|
3
|
+
}
|
4
|
+
|
5
|
+
table.data td {
|
6
|
+
margin: 5px;
|
7
|
+
padding: 5px;
|
8
|
+
width: 50px;
|
9
|
+
}
|
10
|
+
|
11
|
+
table.data thead td {
|
12
|
+
background-color: #eee;
|
13
|
+
}
|
14
|
+
|
15
|
+
table.data thead th {
|
16
|
+
background-color: #eee;
|
17
|
+
border-bottom: 1px solid #ddd;
|
18
|
+
padding: 5px;
|
19
|
+
text-align: left;
|
20
|
+
}
|
21
|
+
|
22
|
+
table.data tbody td {
|
23
|
+
padding: 5px;
|
24
|
+
vertical-align: top;
|
25
|
+
text-align: left;
|
26
|
+
border-bottom: 1px solid #eee;
|
27
|
+
}
|
28
|
+
|
29
|
+
table.data {
|
30
|
+
width: 200px;
|
31
|
+
}
|
32
|
+
|
33
|
+
.center {
|
34
|
+
margin-left: auto;
|
35
|
+
margin-right: auto;
|
36
|
+
}
|
37
|
+
|
38
|
+
h3 {
|
39
|
+
font-size: large;
|
40
|
+
color: #666;
|
41
|
+
background-color: #eee;
|
42
|
+
border-bottom: 1px solid #ddd;
|
43
|
+
padding: 3px;
|
44
|
+
}
|
45
|
+
|
46
|
+
h4 {
|
47
|
+
font-size: medium;
|
48
|
+
margin: 5px;
|
49
|
+
}
|
50
|
+
|
51
|
+
div.data, div.canvas {
|
52
|
+
float: left;
|
53
|
+
margin: 5px;
|
54
|
+
}
|
55
|
+
|
56
|
+
div.ending {
|
57
|
+
clear: both;
|
58
|
+
margin: 10px;
|
59
|
+
}
|
60
|
+
|
61
|
+
div.unit {
|
62
|
+
border: 1px solid #eee;
|
63
|
+
margin: 10px;
|
64
|
+
padding: 10px;
|
65
|
+
}
|
66
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
4
|
+
<head>
|
5
|
+
<object id="AdobeSVG" classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2"></object>
|
6
|
+
<?import namespace="svg" implementation="#AdobeSVG"?>
|
7
|
+
<title>SVG Test</title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
9
|
+
<link href="/css/page.css" media="screen" rel="Stylesheet" type="text/css" />
|
10
|
+
|
11
|
+
|
12
|
+
<script src="testsvg.js" type="text/javascript"></script>
|
13
|
+
<script type="text/javascript">
|
14
|
+
alert(testsvg());
|
15
|
+
</script>
|
16
|
+
</head>
|
17
|
+
|
18
|
+
<body>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
function testsvg() {
|
2
|
+
var isOpera = (navigator.userAgent.toLowerCase().indexOf("opera") != -1);
|
3
|
+
var ieVersion = navigator.appVersion.match(/MSIE (\d\.\d)/);
|
4
|
+
var safariVersion = navigator.userAgent.match(/AppleWebKit\/(\d+)/);
|
5
|
+
var operaVersion = navigator.userAgent.match(/Opera\/(\d*\.\d*)/);
|
6
|
+
var mozillaVersion = navigator.userAgent.match(/rv:(\d*\.\d*).*Gecko/);
|
7
|
+
|
8
|
+
|
9
|
+
if (ieVersion && (ieVersion[1] >= 6) && !isOpera) {
|
10
|
+
var dummysvg = document.createElement('<svg:svg width="1" height="1" baseProfile="full" version="1.1" id="dummy">');
|
11
|
+
try {
|
12
|
+
dummysvg.getSVGDocument();
|
13
|
+
dummysvg = null;
|
14
|
+
return true;
|
15
|
+
}
|
16
|
+
catch (e) {
|
17
|
+
return false;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
if (safariVersion && (safariVersion[1] > 419))
|
22
|
+
return true;
|
23
|
+
|
24
|
+
if (operaVersion && (operaVersion[1] > 8.9))
|
25
|
+
return true
|
26
|
+
|
27
|
+
if (mozillaVersion && (mozillaVersion > 1.7))
|
28
|
+
return true;
|
29
|
+
|
30
|
+
return false;
|
31
|
+
}
|