k4compiler 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +20 -0
- data/.gitmodules +3 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/Guardfile +8 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/k4compiler.gemspec +50 -0
- data/lib/k4compiler.rb +26 -0
- data/lib/k4compiler/compiler.rb +41 -0
- data/lib/k4compiler/compiler/base.rb +24 -0
- data/lib/k4compiler/compiler/closure.rb +96 -0
- data/lib/k4compiler/compiler/markdown.rb +78 -0
- data/lib/k4compiler/compiler/scss.rb +31 -0
- data/lib/k4compiler/config.rb +59 -0
- data/lib/k4compiler/version.rb +3 -0
- data/spec/k4compiler/compiler/base_spec.rb +40 -0
- data/spec/k4compiler/compiler/closure/compiled-src/hello-with-closure-compiled-script.js +18317 -0
- data/spec/k4compiler/compiler/closure/src/hello-compiled-script.js +15 -0
- data/spec/k4compiler/compiler/closure/src/hello-with-closure.js +15 -0
- data/spec/k4compiler/compiler/closure/src/hello.js +15 -0
- data/spec/k4compiler/compiler/closure_spec.rb +159 -0
- data/spec/k4compiler/compiler/markdown_spec.rb +153 -0
- data/spec/k4compiler/compiler/scss/_body.scss +5 -0
- data/spec/k4compiler/compiler/scss/sample.scss +9 -0
- data/spec/k4compiler/compiler/scss_spec.rb +70 -0
- data/spec/k4compiler/compiler_spec.rb +75 -0
- data/spec/k4compiler/config_spec.rb +116 -0
- data/spec/k4compiler_spec.rb +17 -0
- data/spec/spec_helper.rb +8 -0
- data/third_party/.gitkeep +1 -0
- data/third_party/closure-compiler-20130603/COPYING +202 -0
- data/third_party/closure-compiler-20130603/README +292 -0
- data/third_party/closure-compiler-20130603/compiler.jar +0 -0
- data/third_party/closure-library/.gitignore +12 -0
- data/third_party/closure-library/AUTHORS +17 -0
- data/third_party/closure-library/CONTRIBUTING +5 -0
- data/third_party/closure-library/LICENSE +176 -0
- data/third_party/closure-library/README +6 -0
- data/third_party/closure-library/all_tests.html +113 -0
- data/third_party/closure-library/alltests.js +16 -0
- data/third_party/closure-library/closure/bin/build/closurebuilder.py +262 -0
- data/third_party/closure-library/closure/bin/build/depstree.py +189 -0
- data/third_party/closure-library/closure/bin/build/depstree_test.py +127 -0
- data/third_party/closure-library/closure/bin/build/depswriter.py +202 -0
- data/third_party/closure-library/closure/bin/build/jscompiler.py +135 -0
- data/third_party/closure-library/closure/bin/build/jscompiler_test.py +120 -0
- data/third_party/closure-library/closure/bin/build/source.py +121 -0
- data/third_party/closure-library/closure/bin/build/source_test.py +134 -0
- data/third_party/closure-library/closure/bin/build/treescan.py +78 -0
- data/third_party/closure-library/closure/bin/calcdeps.py +590 -0
- data/third_party/closure-library/closure/bin/labs/code/generate_jsdoc.py +171 -0
- data/third_party/closure-library/closure/bin/labs/code/generate_jsdoc_test.py +167 -0
- data/third_party/closure-library/closure/bin/labs/code/run_py_tests.sh +28 -0
- data/third_party/closure-library/closure/bin/scopify.py +211 -0
- data/third_party/closure-library/closure/css/inlay/g-base.css +82 -0
- data/third_party/closure-library/closure/css/inlay/g-fixed.css +173 -0
- data/third_party/closure-library/closure/css/inlay/g-ratio.css +253 -0
- data/third_party/closure-library/closure/goog/a11y/aria/announcer.js +108 -0
- data/third_party/closure-library/closure/goog/a11y/aria/announcer_test.html +97 -0
- data/third_party/closure-library/closure/goog/a11y/aria/aria.js +362 -0
- data/third_party/closure-library/closure/goog/a11y/aria/aria_test.html +263 -0
- data/third_party/closure-library/closure/goog/a11y/aria/attributes.js +389 -0
- data/third_party/closure-library/closure/goog/a11y/aria/datatables.js +68 -0
- data/third_party/closure-library/closure/goog/a11y/aria/roles.js +216 -0
- data/third_party/closure-library/closure/goog/array/array.js +1507 -0
- data/third_party/closure-library/closure/goog/array/array_test.html +1674 -0
- data/third_party/closure-library/closure/goog/asserts/asserts.js +293 -0
- data/third_party/closure-library/closure/goog/asserts/asserts_test.html +178 -0
- data/third_party/closure-library/closure/goog/async/animationdelay.js +270 -0
- data/third_party/closure-library/closure/goog/async/animationdelay_test.html +93 -0
- data/third_party/closure-library/closure/goog/async/conditionaldelay.js +235 -0
- data/third_party/closure-library/closure/goog/async/conditionaldelay_test.html +227 -0
- data/third_party/closure-library/closure/goog/async/delay.js +177 -0
- data/third_party/closure-library/closure/goog/async/delay_test.html +148 -0
- data/third_party/closure-library/closure/goog/async/nexttick.js +174 -0
- data/third_party/closure-library/closure/goog/async/nexttick_test.html +137 -0
- data/third_party/closure-library/closure/goog/async/throttle.js +189 -0
- data/third_party/closure-library/closure/goog/async/throttle_test.html +102 -0
- data/third_party/closure-library/closure/goog/base.js +1593 -0
- data/third_party/closure-library/closure/goog/base_test.html +1206 -0
- data/third_party/closure-library/closure/goog/bootstrap/nodejs.js +91 -0
- data/third_party/closure-library/closure/goog/bootstrap/webworkers.js +37 -0
- data/third_party/closure-library/closure/goog/color/alpha.js +467 -0
- data/third_party/closure-library/closure/goog/color/alpha_test.html +301 -0
- data/third_party/closure-library/closure/goog/color/color.js +773 -0
- data/third_party/closure-library/closure/goog/color/color_test.html +661 -0
- data/third_party/closure-library/closure/goog/color/names.js +176 -0
- data/third_party/closure-library/closure/goog/crypt/aes.js +1027 -0
- data/third_party/closure-library/closure/goog/crypt/aes_test.html +593 -0
- data/third_party/closure-library/closure/goog/crypt/arc4.js +162 -0
- data/third_party/closure-library/closure/goog/crypt/arc4_test.html +63 -0
- data/third_party/closure-library/closure/goog/crypt/base64.js +272 -0
- data/third_party/closure-library/closure/goog/crypt/base64_test.html +117 -0
- data/third_party/closure-library/closure/goog/crypt/basen.js +242 -0
- data/third_party/closure-library/closure/goog/crypt/basen_test.html +167 -0
- data/third_party/closure-library/closure/goog/crypt/blobhasher.js +284 -0
- data/third_party/closure-library/closure/goog/crypt/blobhasher_test.html +385 -0
- data/third_party/closure-library/closure/goog/crypt/blockcipher.js +52 -0
- data/third_party/closure-library/closure/goog/crypt/cbc.js +150 -0
- data/third_party/closure-library/closure/goog/crypt/cbc_test.html +18 -0
- data/third_party/closure-library/closure/goog/crypt/cbc_test.js +100 -0
- data/third_party/closure-library/closure/goog/crypt/crypt.js +155 -0
- data/third_party/closure-library/closure/goog/crypt/crypt_perf.html +85 -0
- data/third_party/closure-library/closure/goog/crypt/crypt_test.html +98 -0
- data/third_party/closure-library/closure/goog/crypt/hash.js +62 -0
- data/third_party/closure-library/closure/goog/crypt/hash32.js +184 -0
- data/third_party/closure-library/closure/goog/crypt/hash32_test.html +287 -0
- data/third_party/closure-library/closure/goog/crypt/hashtester.js +243 -0
- data/third_party/closure-library/closure/goog/crypt/hmac.js +162 -0
- data/third_party/closure-library/closure/goog/crypt/hmac_test.html +113 -0
- data/third_party/closure-library/closure/goog/crypt/md5.js +429 -0
- data/third_party/closure-library/closure/goog/crypt/md5_perf.html +39 -0
- data/third_party/closure-library/closure/goog/crypt/md5_test.html +152 -0
- data/third_party/closure-library/closure/goog/crypt/pbkdf2.js +127 -0
- data/third_party/closure-library/closure/goog/crypt/pbkdf2_test.html +68 -0
- data/third_party/closure-library/closure/goog/crypt/sha1.js +275 -0
- data/third_party/closure-library/closure/goog/crypt/sha1_perf.html +40 -0
- data/third_party/closure-library/closure/goog/crypt/sha1_test.html +79 -0
- data/third_party/closure-library/closure/goog/crypt/sha2.js +275 -0
- data/third_party/closure-library/closure/goog/crypt/sha224.js +53 -0
- data/third_party/closure-library/closure/goog/crypt/sha224_perf.html +40 -0
- data/third_party/closure-library/closure/goog/crypt/sha224_test.html +57 -0
- data/third_party/closure-library/closure/goog/crypt/sha256.js +53 -0
- data/third_party/closure-library/closure/goog/crypt/sha256_perf.html +40 -0
- data/third_party/closure-library/closure/goog/crypt/sha256_test.html +66 -0
- data/third_party/closure-library/closure/goog/css/autocomplete.css +43 -0
- data/third_party/closure-library/closure/goog/css/bubble.css +84 -0
- data/third_party/closure-library/closure/goog/css/button.css +38 -0
- data/third_party/closure-library/closure/goog/css/charpicker.css +206 -0
- data/third_party/closure-library/closure/goog/css/checkbox.css +38 -0
- data/third_party/closure-library/closure/goog/css/colormenubutton.css +25 -0
- data/third_party/closure-library/closure/goog/css/colorpalette.css +54 -0
- data/third_party/closure-library/closure/goog/css/colorpicker-simplegrid.css +49 -0
- data/third_party/closure-library/closure/goog/css/combobox.css +54 -0
- data/third_party/closure-library/closure/goog/css/common.css +41 -0
- data/third_party/closure-library/closure/goog/css/css3button.css +77 -0
- data/third_party/closure-library/closure/goog/css/css3menubutton.css +23 -0
- data/third_party/closure-library/closure/goog/css/custombutton.css +164 -0
- data/third_party/closure-library/closure/goog/css/datepicker.css +148 -0
- data/third_party/closure-library/closure/goog/css/dialog.css +72 -0
- data/third_party/closure-library/closure/goog/css/dimensionpicker.css +47 -0
- data/third_party/closure-library/closure/goog/css/dragdropdetector.css +48 -0
- data/third_party/closure-library/closure/goog/css/editor/bubble.css +73 -0
- data/third_party/closure-library/closure/goog/css/editor/dialog.css +66 -0
- data/third_party/closure-library/closure/goog/css/editor/equationeditor.css +113 -0
- data/third_party/closure-library/closure/goog/css/editor/linkdialog.css +36 -0
- data/third_party/closure-library/closure/goog/css/editortoolbar.css +225 -0
- data/third_party/closure-library/closure/goog/css/filteredmenu.css +30 -0
- data/third_party/closure-library/closure/goog/css/filterobservingmenuitem.css +25 -0
- data/third_party/closure-library/closure/goog/css/flatbutton.css +64 -0
- data/third_party/closure-library/closure/goog/css/flatmenubutton.css +63 -0
- data/third_party/closure-library/closure/goog/css/hovercard.css +51 -0
- data/third_party/closure-library/closure/goog/css/hsvapalette.css +231 -0
- data/third_party/closure-library/closure/goog/css/hsvpalette.css +179 -0
- data/third_party/closure-library/closure/goog/css/imagelessbutton.css +160 -0
- data/third_party/closure-library/closure/goog/css/imagelessmenubutton.css +23 -0
- data/third_party/closure-library/closure/goog/css/inputdatepicker.css +12 -0
- data/third_party/closure-library/closure/goog/css/linkbutton.css +26 -0
- data/third_party/closure-library/closure/goog/css/menu.css +27 -0
- data/third_party/closure-library/closure/goog/css/menubar.css +57 -0
- data/third_party/closure-library/closure/goog/css/menubutton.css +169 -0
- data/third_party/closure-library/closure/goog/css/menuitem.css +148 -0
- data/third_party/closure-library/closure/goog/css/menuseparator.css +19 -0
- data/third_party/closure-library/closure/goog/css/multitestrunner.css +121 -0
- data/third_party/closure-library/closure/goog/css/offline.css +147 -0
- data/third_party/closure-library/closure/goog/css/palette.css +36 -0
- data/third_party/closure-library/closure/goog/css/popupdatepicker.css +17 -0
- data/third_party/closure-library/closure/goog/css/roundedpanel.css +29 -0
- data/third_party/closure-library/closure/goog/css/roundedtab.css +158 -0
- data/third_party/closure-library/closure/goog/css/submenu.css +38 -0
- data/third_party/closure-library/closure/goog/css/tab.css +105 -0
- data/third_party/closure-library/closure/goog/css/tabbar.css +52 -0
- data/third_party/closure-library/closure/goog/css/tablesorter.css +14 -0
- data/third_party/closure-library/closure/goog/css/toolbar.css +400 -0
- data/third_party/closure-library/closure/goog/css/tooltip.css +14 -0
- data/third_party/closure-library/closure/goog/css/tree.css +146 -0
- data/third_party/closure-library/closure/goog/css/tristatemenuitem.css +43 -0
- data/third_party/closure-library/closure/goog/cssom/cssom.js +449 -0
- data/third_party/closure-library/closure/goog/cssom/cssom_test.html +343 -0
- data/third_party/closure-library/closure/goog/cssom/cssom_test_import_1.css +11 -0
- data/third_party/closure-library/closure/goog/cssom/cssom_test_import_2.css +10 -0
- data/third_party/closure-library/closure/goog/cssom/cssom_test_link_1.css +10 -0
- data/third_party/closure-library/closure/goog/cssom/iframe/style.js +1023 -0
- data/third_party/closure-library/closure/goog/cssom/iframe/style_test.html +391 -0
- data/third_party/closure-library/closure/goog/cssom/iframe/style_test_import.css +10 -0
- data/third_party/closure-library/closure/goog/datasource/datamanager.js +559 -0
- data/third_party/closure-library/closure/goog/datasource/datasource.js +656 -0
- data/third_party/closure-library/closure/goog/datasource/datasource_test.html +265 -0
- data/third_party/closure-library/closure/goog/datasource/expr.js +544 -0
- data/third_party/closure-library/closure/goog/datasource/expr_test.html +97 -0
- data/third_party/closure-library/closure/goog/datasource/fastdatanode.js +811 -0
- data/third_party/closure-library/closure/goog/datasource/fastdatanode_test.html +254 -0
- data/third_party/closure-library/closure/goog/datasource/jsdatasource.js +460 -0
- data/third_party/closure-library/closure/goog/datasource/jsondatasource.js +148 -0
- data/third_party/closure-library/closure/goog/datasource/jsxmlhttpdatasource.js +195 -0
- data/third_party/closure-library/closure/goog/datasource/jsxmlhttpdatasource_test.html +94 -0
- data/third_party/closure-library/closure/goog/datasource/xmldatasource.js +415 -0
- data/third_party/closure-library/closure/goog/date/date.js +1718 -0
- data/third_party/closure-library/closure/goog/date/date_test.html +1392 -0
- data/third_party/closure-library/closure/goog/date/datelike.js +27 -0
- data/third_party/closure-library/closure/goog/date/daterange.js +413 -0
- data/third_party/closure-library/closure/goog/date/daterange_test.html +253 -0
- data/third_party/closure-library/closure/goog/date/relative.js +465 -0
- data/third_party/closure-library/closure/goog/date/relative_test.html +267 -0
- data/third_party/closure-library/closure/goog/date/utcdatetime.js +179 -0
- data/third_party/closure-library/closure/goog/date/utcdatetime_test.html +124 -0
- data/third_party/closure-library/closure/goog/db/cursor.js +214 -0
- data/third_party/closure-library/closure/goog/db/db.js +182 -0
- data/third_party/closure-library/closure/goog/db/db_test.html +1657 -0
- data/third_party/closure-library/closure/goog/db/error.js +359 -0
- data/third_party/closure-library/closure/goog/db/index.js +245 -0
- data/third_party/closure-library/closure/goog/db/indexeddb.js +337 -0
- data/third_party/closure-library/closure/goog/db/keyrange.js +117 -0
- data/third_party/closure-library/closure/goog/db/objectstore.js +399 -0
- data/third_party/closure-library/closure/goog/db/old_db_test.html +1244 -0
- data/third_party/closure-library/closure/goog/db/transaction.js +218 -0
- data/third_party/closure-library/closure/goog/debug/console.js +207 -0
- data/third_party/closure-library/closure/goog/debug/console_test.html +195 -0
- data/third_party/closure-library/closure/goog/debug/debug.js +501 -0
- data/third_party/closure-library/closure/goog/debug/debug_test.html +68 -0
- data/third_party/closure-library/closure/goog/debug/debugwindow.js +615 -0
- data/third_party/closure-library/closure/goog/debug/debugwindow_test.html +29 -0
- data/third_party/closure-library/closure/goog/debug/devcss/devcss.js +444 -0
- data/third_party/closure-library/closure/goog/debug/devcss/devcss_test.html +365 -0
- data/third_party/closure-library/closure/goog/debug/devcss/devcssrunner.js +26 -0
- data/third_party/closure-library/closure/goog/debug/divconsole.js +141 -0
- data/third_party/closure-library/closure/goog/debug/enhanceerror_test.html +138 -0
- data/third_party/closure-library/closure/goog/debug/entrypointregistry.js +158 -0
- data/third_party/closure-library/closure/goog/debug/entrypointregistry_test.html +87 -0
- data/third_party/closure-library/closure/goog/debug/error.js +51 -0
- data/third_party/closure-library/closure/goog/debug/error_test.html +101 -0
- data/third_party/closure-library/closure/goog/debug/errorhandler.js +363 -0
- data/third_party/closure-library/closure/goog/debug/errorhandler_async_test.html +112 -0
- data/third_party/closure-library/closure/goog/debug/errorhandler_test.html +292 -0
- data/third_party/closure-library/closure/goog/debug/errorhandlerweakdep.js +38 -0
- data/third_party/closure-library/closure/goog/debug/errorreporter.js +376 -0
- data/third_party/closure-library/closure/goog/debug/errorreporter_test.html +351 -0
- data/third_party/closure-library/closure/goog/debug/fancywindow.js +362 -0
- data/third_party/closure-library/closure/goog/debug/formatter.js +316 -0
- data/third_party/closure-library/closure/goog/debug/fpsdisplay.js +162 -0
- data/third_party/closure-library/closure/goog/debug/fpsdisplay_test.html +53 -0
- data/third_party/closure-library/closure/goog/debug/gcdiagnostics.js +143 -0
- data/third_party/closure-library/closure/goog/debug/logbuffer.js +147 -0
- data/third_party/closure-library/closure/goog/debug/logbuffer_test.html +105 -0
- data/third_party/closure-library/closure/goog/debug/logger.js +853 -0
- data/third_party/closure-library/closure/goog/debug/logger_test.html +208 -0
- data/third_party/closure-library/closure/goog/debug/logrecord.js +271 -0
- data/third_party/closure-library/closure/goog/debug/logrecordserializer.js +121 -0
- data/third_party/closure-library/closure/goog/debug/logrecordserializer_test.html +96 -0
- data/third_party/closure-library/closure/goog/debug/reflect.js +178 -0
- data/third_party/closure-library/closure/goog/debug/reflect_test.html +101 -0
- data/third_party/closure-library/closure/goog/debug/relativetimeprovider.js +83 -0
- data/third_party/closure-library/closure/goog/debug/tracer.js +724 -0
- data/third_party/closure-library/closure/goog/debug/tracer_test.html +57 -0
- data/third_party/closure-library/closure/goog/demos/advancedtooltip.html +78 -0
- data/third_party/closure-library/closure/goog/demos/animationqueue.html +149 -0
- data/third_party/closure-library/closure/goog/demos/autocomplete-basic.html +56 -0
- data/third_party/closure-library/closure/goog/demos/autocompleteremote.html +40 -0
- data/third_party/closure-library/closure/goog/demos/autocompleteremotedata.js +18 -0
- data/third_party/closure-library/closure/goog/demos/autocompleterichremote.html +137 -0
- data/third_party/closure-library/closure/goog/demos/autocompleterichremotedata.js +33 -0
- data/third_party/closure-library/closure/goog/demos/bidiinput.html +72 -0
- data/third_party/closure-library/closure/goog/demos/blobhasher.html +61 -0
- data/third_party/closure-library/closure/goog/demos/bubble.html +250 -0
- data/third_party/closure-library/closure/goog/demos/button.html +395 -0
- data/third_party/closure-library/closure/goog/demos/charcounter.html +57 -0
- data/third_party/closure-library/closure/goog/demos/charpicker.html +66 -0
- data/third_party/closure-library/closure/goog/demos/checkbox.html +122 -0
- data/third_party/closure-library/closure/goog/demos/color-contrast.html +60 -0
- data/third_party/closure-library/closure/goog/demos/colormenubutton.html +221 -0
- data/third_party/closure-library/closure/goog/demos/colorpicker.html +43 -0
- data/third_party/closure-library/closure/goog/demos/combobox.html +160 -0
- data/third_party/closure-library/closure/goog/demos/container.html +670 -0
- data/third_party/closure-library/closure/goog/demos/control.html +477 -0
- data/third_party/closure-library/closure/goog/demos/css/demo.css +75 -0
- data/third_party/closure-library/closure/goog/demos/css/emojipicker.css +36 -0
- data/third_party/closure-library/closure/goog/demos/css/emojisprite.css +92 -0
- data/third_party/closure-library/closure/goog/demos/css3button.html +166 -0
- data/third_party/closure-library/closure/goog/demos/css3menubutton.html +285 -0
- data/third_party/closure-library/closure/goog/demos/cssspriteanimation.html +80 -0
- data/third_party/closure-library/closure/goog/demos/datepicker.html +183 -0
- data/third_party/closure-library/closure/goog/demos/debug.html +118 -0
- data/third_party/closure-library/closure/goog/demos/depsgraph.html +220 -0
- data/third_party/closure-library/closure/goog/demos/dialog.html +156 -0
- data/third_party/closure-library/closure/goog/demos/dimensionpicker.html +108 -0
- data/third_party/closure-library/closure/goog/demos/dimensionpicker_rtl.html +123 -0
- data/third_party/closure-library/closure/goog/demos/dom_selection.html +88 -0
- data/third_party/closure-library/closure/goog/demos/drag.html +191 -0
- data/third_party/closure-library/closure/goog/demos/dragdrop.html +263 -0
- data/third_party/closure-library/closure/goog/demos/dragdropdetector.html +46 -0
- data/third_party/closure-library/closure/goog/demos/dragdropdetector_target.html +17 -0
- data/third_party/closure-library/closure/goog/demos/dragger.html +83 -0
- data/third_party/closure-library/closure/goog/demos/draglistgroup.html +273 -0
- data/third_party/closure-library/closure/goog/demos/dragscrollsupport.html +133 -0
- data/third_party/closure-library/closure/goog/demos/drilldownrow.html +78 -0
- data/third_party/closure-library/closure/goog/demos/editor/deps.js +21 -0
- data/third_party/closure-library/closure/goog/demos/editor/editor.html +139 -0
- data/third_party/closure-library/closure/goog/demos/editor/equationeditor.html +36 -0
- data/third_party/closure-library/closure/goog/demos/editor/equationeditor.js +40 -0
- data/third_party/closure-library/closure/goog/demos/editor/field_basic.html +74 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworld.html +91 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworld.js +81 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworld_test.html +75 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworlddialog.js +171 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworlddialog_test.html +100 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworlddialogplugin.js +116 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworlddialogplugin_test.html +198 -0
- data/third_party/closure-library/closure/goog/demos/editor/seamlessfield.html +106 -0
- data/third_party/closure-library/closure/goog/demos/editor/tableeditor.html +93 -0
- data/third_party/closure-library/closure/goog/demos/effects.html +162 -0
- data/third_party/closure-library/closure/goog/demos/emoji/200.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/201.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/202.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/203.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/204.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/205.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/206.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2BC.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2BD.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2BE.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2BF.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C0.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C1.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C2.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C3.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C4.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C5.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C6.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C7.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C8.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C9.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2CA.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2CB.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2CC.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2CD.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2CE.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2CF.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D0.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D1.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D2.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D3.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D4.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D5.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D6.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D7.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D8.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D9.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2DA.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2DB.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2DC.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2DD.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2DE.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2DF.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E0.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E1.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E2.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E3.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E4.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E5.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E6.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E7.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E8.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E9.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2EA.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2EB.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2EC.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2ED.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2EE.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2EF.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F0.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F1.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F2.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F3.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F4.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F5.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F6.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F7.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F8.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F9.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2FA.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2FB.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2FC.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2FD.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2FE.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2FF.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/none.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/sprite.png +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/sprite2.png +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/unknown.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/event-propagation.html +192 -0
- data/third_party/closure-library/closure/goog/demos/events.html +99 -0
- data/third_party/closure-library/closure/goog/demos/eventtarget.html +70 -0
- data/third_party/closure-library/closure/goog/demos/filedrophandler.html +65 -0
- data/third_party/closure-library/closure/goog/demos/filteredmenu.html +118 -0
- data/third_party/closure-library/closure/goog/demos/focushandler.html +58 -0
- data/third_party/closure-library/closure/goog/demos/fpsdisplay.html +50 -0
- data/third_party/closure-library/closure/goog/demos/fx/css3/transition.html +222 -0
- data/third_party/closure-library/closure/goog/demos/gauge.html +158 -0
- data/third_party/closure-library/closure/goog/demos/graphics/advancedcoordinates.html +141 -0
- data/third_party/closure-library/closure/goog/demos/graphics/advancedcoordinates2.html +130 -0
- data/third_party/closure-library/closure/goog/demos/graphics/basicelements.html +264 -0
- data/third_party/closure-library/closure/goog/demos/graphics/events.html +114 -0
- data/third_party/closure-library/closure/goog/demos/graphics/modifyelements.html +195 -0
- data/third_party/closure-library/closure/goog/demos/graphics/subpixel.html +80 -0
- data/third_party/closure-library/closure/goog/demos/graphics/tiger.html +105 -0
- data/third_party/closure-library/closure/goog/demos/graphics/tigerdata.js +2841 -0
- data/third_party/closure-library/closure/goog/demos/history1.html +132 -0
- data/third_party/closure-library/closure/goog/demos/history2.html +119 -0
- data/third_party/closure-library/closure/goog/demos/history3.html +116 -0
- data/third_party/closure-library/closure/goog/demos/history3js.html +48 -0
- data/third_party/closure-library/closure/goog/demos/history_blank.html +26 -0
- data/third_party/closure-library/closure/goog/demos/hovercard.html +177 -0
- data/third_party/closure-library/closure/goog/demos/hsvapalette.html +55 -0
- data/third_party/closure-library/closure/goog/demos/hsvpalette.html +56 -0
- data/third_party/closure-library/closure/goog/demos/html5history.html +87 -0
- data/third_party/closure-library/closure/goog/demos/imagelessbutton.html +221 -0
- data/third_party/closure-library/closure/goog/demos/imagelessmenubutton.html +285 -0
- data/third_party/closure-library/closure/goog/demos/index.html +20 -0
- data/third_party/closure-library/closure/goog/demos/index_nav.html +255 -0
- data/third_party/closure-library/closure/goog/demos/index_splash.html +27 -0
- data/third_party/closure-library/closure/goog/demos/inline_block_quirks.html +125 -0
- data/third_party/closure-library/closure/goog/demos/inline_block_standards.html +126 -0
- data/third_party/closure-library/closure/goog/demos/inputdatepicker.html +60 -0
- data/third_party/closure-library/closure/goog/demos/inputhandler.html +88 -0
- data/third_party/closure-library/closure/goog/demos/jsonprettyprinter.html +80 -0
- data/third_party/closure-library/closure/goog/demos/keyboardshortcuts.html +112 -0
- data/third_party/closure-library/closure/goog/demos/keyhandler.html +118 -0
- data/third_party/closure-library/closure/goog/demos/labelinput.html +42 -0
- data/third_party/closure-library/closure/goog/demos/menu.html +220 -0
- data/third_party/closure-library/closure/goog/demos/menubar.html +211 -0
- data/third_party/closure-library/closure/goog/demos/menubutton.html +380 -0
- data/third_party/closure-library/closure/goog/demos/menubutton_frame.html +27 -0
- data/third_party/closure-library/closure/goog/demos/menuitem.html +164 -0
- data/third_party/closure-library/closure/goog/demos/mousewheelhandler.html +109 -0
- data/third_party/closure-library/closure/goog/demos/offline.html +268 -0
- data/third_party/closure-library/closure/goog/demos/onlinehandler.html +79 -0
- data/third_party/closure-library/closure/goog/demos/palette.html +302 -0
- data/third_party/closure-library/closure/goog/demos/pastehandler.html +54 -0
- data/third_party/closure-library/closure/goog/demos/pixeldensitymonitor.html +51 -0
- data/third_party/closure-library/closure/goog/demos/plaintextspellchecker.html +106 -0
- data/third_party/closure-library/closure/goog/demos/popup.html +206 -0
- data/third_party/closure-library/closure/goog/demos/popupcolorpicker.html +49 -0
- data/third_party/closure-library/closure/goog/demos/popupdatepicker.html +53 -0
- data/third_party/closure-library/closure/goog/demos/popupemojipicker.html +407 -0
- data/third_party/closure-library/closure/goog/demos/popupmenu.html +116 -0
- data/third_party/closure-library/closure/goog/demos/progressbar.html +97 -0
- data/third_party/closure-library/closure/goog/demos/prompt.html +92 -0
- data/third_party/closure-library/closure/goog/demos/quadtree.html +107 -0
- data/third_party/closure-library/closure/goog/demos/ratings.html +121 -0
- data/third_party/closure-library/closure/goog/demos/richtextspellchecker.html +92 -0
- data/third_party/closure-library/closure/goog/demos/roundedpanel.html +139 -0
- data/third_party/closure-library/closure/goog/demos/samplecomponent.html +75 -0
- data/third_party/closure-library/closure/goog/demos/samplecomponent.js +197 -0
- data/third_party/closure-library/closure/goog/demos/scrollfloater.html +113 -0
- data/third_party/closure-library/closure/goog/demos/select.html +324 -0
- data/third_party/closure-library/closure/goog/demos/selectionmenubutton.html +186 -0
- data/third_party/closure-library/closure/goog/demos/serverchart.html +122 -0
- data/third_party/closure-library/closure/goog/demos/slider.html +128 -0
- data/third_party/closure-library/closure/goog/demos/splitbehavior.html +163 -0
- data/third_party/closure-library/closure/goog/demos/splitpane.html +243 -0
- data/third_party/closure-library/closure/goog/demos/stopevent.html +171 -0
- data/third_party/closure-library/closure/goog/demos/submenus.html +130 -0
- data/third_party/closure-library/closure/goog/demos/submenus2.html +150 -0
- data/third_party/closure-library/closure/goog/demos/tabbar.html +289 -0
- data/third_party/closure-library/closure/goog/demos/tablesorter.html +116 -0
- data/third_party/closure-library/closure/goog/demos/tabpane.html +302 -0
- data/third_party/closure-library/closure/goog/demos/textarea.html +128 -0
- data/third_party/closure-library/closure/goog/demos/timers.html +291 -0
- data/third_party/closure-library/closure/goog/demos/toolbar.html +703 -0
- data/third_party/closure-library/closure/goog/demos/tooltip.html +91 -0
- data/third_party/closure-library/closure/goog/demos/tracer.html +92 -0
- data/third_party/closure-library/closure/goog/demos/tree/demo.html +126 -0
- data/third_party/closure-library/closure/goog/demos/tree/testdata.js +260 -0
- data/third_party/closure-library/closure/goog/demos/tweakui.html +121 -0
- data/third_party/closure-library/closure/goog/demos/twothumbslider.html +121 -0
- data/third_party/closure-library/closure/goog/demos/useragent.html +214 -0
- data/third_party/closure-library/closure/goog/demos/viewportsizemonitor.html +71 -0
- data/third_party/closure-library/closure/goog/demos/xpc/blank.html +7 -0
- data/third_party/closure-library/closure/goog/demos/xpc/index.html +89 -0
- data/third_party/closure-library/closure/goog/demos/xpc/inner.html +58 -0
- data/third_party/closure-library/closure/goog/demos/xpc/minimal/blank.html +7 -0
- data/third_party/closure-library/closure/goog/demos/xpc/minimal/index.html +105 -0
- data/third_party/closure-library/closure/goog/demos/xpc/minimal/inner.html +75 -0
- data/third_party/closure-library/closure/goog/demos/xpc/minimal/relay.html +7 -0
- data/third_party/closure-library/closure/goog/demos/xpc/relay.html +16 -0
- data/third_party/closure-library/closure/goog/demos/xpc/xpcdemo.js +307 -0
- data/third_party/closure-library/closure/goog/demos/zippy.html +149 -0
- data/third_party/closure-library/closure/goog/deps.js +911 -0
- data/third_party/closure-library/closure/goog/disposable/disposable.js +294 -0
- data/third_party/closure-library/closure/goog/disposable/disposable_test.html +307 -0
- data/third_party/closure-library/closure/goog/disposable/idisposable.js +45 -0
- data/third_party/closure-library/closure/goog/dom/a11y.js +169 -0
- data/third_party/closure-library/closure/goog/dom/abstractmultirange.js +77 -0
- data/third_party/closure-library/closure/goog/dom/abstractrange.js +528 -0
- data/third_party/closure-library/closure/goog/dom/abstractrange_test.html +73 -0
- data/third_party/closure-library/closure/goog/dom/annotate.js +355 -0
- data/third_party/closure-library/closure/goog/dom/annotate_test.html +215 -0
- data/third_party/closure-library/closure/goog/dom/browserfeature.js +67 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/abstractrange.js +352 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/browserrange.js +150 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/browserrange_test.html +638 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/geckorange.js +86 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/ierange.js +952 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/operarange.js +83 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/w3crange.js +365 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/webkitrange.js +112 -0
- data/third_party/closure-library/closure/goog/dom/bufferedviewportsizemonitor.js +202 -0
- data/third_party/closure-library/closure/goog/dom/bufferedviewportsizemonitor_test.html +17 -0
- data/third_party/closure-library/closure/goog/dom/bufferedviewportsizemonitor_test.js +130 -0
- data/third_party/closure-library/closure/goog/dom/classes.js +227 -0
- data/third_party/closure-library/closure/goog/dom/classes_quirks_test.html +63 -0
- data/third_party/closure-library/closure/goog/dom/classes_test.html +64 -0
- data/third_party/closure-library/closure/goog/dom/classes_test.js +231 -0
- data/third_party/closure-library/closure/goog/dom/classlist.js +271 -0
- data/third_party/closure-library/closure/goog/dom/classlist_test.html +26 -0
- data/third_party/closure-library/closure/goog/dom/classlist_test.js +244 -0
- data/third_party/closure-library/closure/goog/dom/controlrange.js +505 -0
- data/third_party/closure-library/closure/goog/dom/controlrange_test.html +246 -0
- data/third_party/closure-library/closure/goog/dom/dataset.js +135 -0
- data/third_party/closure-library/closure/goog/dom/dataset_test.html +117 -0
- data/third_party/closure-library/closure/goog/dom/dom.js +2700 -0
- data/third_party/closure-library/closure/goog/dom/dom_quirks_test.html +113 -0
- data/third_party/closure-library/closure/goog/dom/dom_test.html +113 -0
- data/third_party/closure-library/closure/goog/dom/dom_test.js +1421 -0
- data/third_party/closure-library/closure/goog/dom/fontsizemonitor.js +159 -0
- data/third_party/closure-library/closure/goog/dom/fontsizemonitor_test.html +284 -0
- data/third_party/closure-library/closure/goog/dom/forms.js +414 -0
- data/third_party/closure-library/closure/goog/dom/forms_test.html +501 -0
- data/third_party/closure-library/closure/goog/dom/fullscreen.js +124 -0
- data/third_party/closure-library/closure/goog/dom/iframe.js +163 -0
- data/third_party/closure-library/closure/goog/dom/iframe_test.html +88 -0
- data/third_party/closure-library/closure/goog/dom/iter.js +127 -0
- data/third_party/closure-library/closure/goog/dom/iter_test.html +97 -0
- data/third_party/closure-library/closure/goog/dom/multirange.js +519 -0
- data/third_party/closure-library/closure/goog/dom/multirange_test.html +67 -0
- data/third_party/closure-library/closure/goog/dom/nodeiterator.js +86 -0
- data/third_party/closure-library/closure/goog/dom/nodeiterator_test.html +49 -0
- data/third_party/closure-library/closure/goog/dom/nodeoffset.js +112 -0
- data/third_party/closure-library/closure/goog/dom/nodeoffset_test.html +88 -0
- data/third_party/closure-library/closure/goog/dom/pattern/abstractpattern.js +60 -0
- data/third_party/closure-library/closure/goog/dom/pattern/allchildren.js +75 -0
- data/third_party/closure-library/closure/goog/dom/pattern/callback/callback.js +82 -0
- data/third_party/closure-library/closure/goog/dom/pattern/callback/counter.js +72 -0
- data/third_party/closure-library/closure/goog/dom/pattern/callback/test.js +77 -0
- data/third_party/closure-library/closure/goog/dom/pattern/childmatches.js +154 -0
- data/third_party/closure-library/closure/goog/dom/pattern/endtag.js +53 -0
- data/third_party/closure-library/closure/goog/dom/pattern/fulltag.js +93 -0
- data/third_party/closure-library/closure/goog/dom/pattern/matcher.js +150 -0
- data/third_party/closure-library/closure/goog/dom/pattern/matcher_test.html +204 -0
- data/third_party/closure-library/closure/goog/dom/pattern/nodetype.js +58 -0
- data/third_party/closure-library/closure/goog/dom/pattern/pattern.js +93 -0
- data/third_party/closure-library/closure/goog/dom/pattern/pattern_test.html +614 -0
- data/third_party/closure-library/closure/goog/dom/pattern/repeat.js +190 -0
- data/third_party/closure-library/closure/goog/dom/pattern/sequence.js +141 -0
- data/third_party/closure-library/closure/goog/dom/pattern/starttag.js +53 -0
- data/third_party/closure-library/closure/goog/dom/pattern/tag.js +150 -0
- data/third_party/closure-library/closure/goog/dom/pattern/text.js +70 -0
- data/third_party/closure-library/closure/goog/dom/range.js +226 -0
- data/third_party/closure-library/closure/goog/dom/range_test.html +735 -0
- data/third_party/closure-library/closure/goog/dom/rangeendpoint.js +32 -0
- data/third_party/closure-library/closure/goog/dom/savedcaretrange.js +215 -0
- data/third_party/closure-library/closure/goog/dom/savedcaretrange_test.html +257 -0
- data/third_party/closure-library/closure/goog/dom/savedrange.js +74 -0
- data/third_party/closure-library/closure/goog/dom/savedrange_test.html +61 -0
- data/third_party/closure-library/closure/goog/dom/selection.js +470 -0
- data/third_party/closure-library/closure/goog/dom/selection_test.html +329 -0
- data/third_party/closure-library/closure/goog/dom/tagiterator.js +367 -0
- data/third_party/closure-library/closure/goog/dom/tagiterator_test.html +589 -0
- data/third_party/closure-library/closure/goog/dom/tagname.js +159 -0
- data/third_party/closure-library/closure/goog/dom/tagname_test.html +37 -0
- data/third_party/closure-library/closure/goog/dom/textrange.js +630 -0
- data/third_party/closure-library/closure/goog/dom/textrange_test.html +342 -0
- data/third_party/closure-library/closure/goog/dom/textrangeiterator.js +244 -0
- data/third_party/closure-library/closure/goog/dom/textrangeiterator_test.html +142 -0
- data/third_party/closure-library/closure/goog/dom/vendor.js +62 -0
- data/third_party/closure-library/closure/goog/dom/vendor_test.html +202 -0
- data/third_party/closure-library/closure/goog/dom/viewportsizemonitor.js +180 -0
- data/third_party/closure-library/closure/goog/dom/viewportsizemonitor_test.html +138 -0
- data/third_party/closure-library/closure/goog/dom/xml.js +204 -0
- data/third_party/closure-library/closure/goog/dom/xml_test.html +103 -0
- data/third_party/closure-library/closure/goog/editor/browserfeature.js +273 -0
- data/third_party/closure-library/closure/goog/editor/browserfeature_test.html +124 -0
- data/third_party/closure-library/closure/goog/editor/clicktoeditwrapper.js +435 -0
- data/third_party/closure-library/closure/goog/editor/clicktoeditwrapper_test.html +137 -0
- data/third_party/closure-library/closure/goog/editor/command.js +76 -0
- data/third_party/closure-library/closure/goog/editor/contenteditablefield.js +110 -0
- data/third_party/closure-library/closure/goog/editor/contenteditablefield_test.html +62 -0
- data/third_party/closure-library/closure/goog/editor/defines.js +34 -0
- data/third_party/closure-library/closure/goog/editor/field.js +2725 -0
- data/third_party/closure-library/closure/goog/editor/field_test.html +32 -0
- data/third_party/closure-library/closure/goog/editor/field_test.js +1278 -0
- data/third_party/closure-library/closure/goog/editor/focus.js +32 -0
- data/third_party/closure-library/closure/goog/editor/focus_test.html +66 -0
- data/third_party/closure-library/closure/goog/editor/icontent.js +296 -0
- data/third_party/closure-library/closure/goog/editor/icontent_test.html +232 -0
- data/third_party/closure-library/closure/goog/editor/link.js +359 -0
- data/third_party/closure-library/closure/goog/editor/link_test.html +252 -0
- data/third_party/closure-library/closure/goog/editor/node.js +483 -0
- data/third_party/closure-library/closure/goog/editor/node_test.html +631 -0
- data/third_party/closure-library/closure/goog/editor/plugin.js +463 -0
- data/third_party/closure-library/closure/goog/editor/plugin_test.html +187 -0
- data/third_party/closure-library/closure/goog/editor/plugins/abstractbubbleplugin.js +630 -0
- data/third_party/closure-library/closure/goog/editor/plugins/abstractbubbleplugin_test.html +313 -0
- data/third_party/closure-library/closure/goog/editor/plugins/abstractdialogplugin.js +334 -0
- data/third_party/closure-library/closure/goog/editor/plugins/abstractdialogplugin_test.html +404 -0
- data/third_party/closure-library/closure/goog/editor/plugins/abstracttabhandler.js +78 -0
- data/third_party/closure-library/closure/goog/editor/plugins/abstracttabhandler_test.html +91 -0
- data/third_party/closure-library/closure/goog/editor/plugins/basictextformatter.js +1750 -0
- data/third_party/closure-library/closure/goog/editor/plugins/basictextformatter_test.html +1171 -0
- data/third_party/closure-library/closure/goog/editor/plugins/blockquote.js +479 -0
- data/third_party/closure-library/closure/goog/editor/plugins/blockquote_test.html +212 -0
- data/third_party/closure-library/closure/goog/editor/plugins/emoticons.js +88 -0
- data/third_party/closure-library/closure/goog/editor/plugins/emoticons_test.html +92 -0
- data/third_party/closure-library/closure/goog/editor/plugins/enterhandler.js +767 -0
- data/third_party/closure-library/closure/goog/editor/plugins/enterhandler_test.html +754 -0
- data/third_party/closure-library/closure/goog/editor/plugins/equationeditorbubble.js +153 -0
- data/third_party/closure-library/closure/goog/editor/plugins/equationeditorplugin.js +215 -0
- data/third_party/closure-library/closure/goog/editor/plugins/equationeditorplugin_test.html +120 -0
- data/third_party/closure-library/closure/goog/editor/plugins/firststrong.js +326 -0
- data/third_party/closure-library/closure/goog/editor/plugins/firststrong_test.html +411 -0
- data/third_party/closure-library/closure/goog/editor/plugins/headerformatter.js +95 -0
- data/third_party/closure-library/closure/goog/editor/plugins/headerformatter_test.html +100 -0
- data/third_party/closure-library/closure/goog/editor/plugins/linkbubble.js +562 -0
- data/third_party/closure-library/closure/goog/editor/plugins/linkbubble_test.html +375 -0
- data/third_party/closure-library/closure/goog/editor/plugins/linkdialogplugin.js +437 -0
- data/third_party/closure-library/closure/goog/editor/plugins/linkdialogplugin_test.html +740 -0
- data/third_party/closure-library/closure/goog/editor/plugins/linkshortcutplugin.js +63 -0
- data/third_party/closure-library/closure/goog/editor/plugins/linkshortcutplugin_test.html +70 -0
- data/third_party/closure-library/closure/goog/editor/plugins/listtabhandler.js +66 -0
- data/third_party/closure-library/closure/goog/editor/plugins/listtabhandler_test.html +177 -0
- data/third_party/closure-library/closure/goog/editor/plugins/loremipsum.js +188 -0
- data/third_party/closure-library/closure/goog/editor/plugins/loremipsum_test.html +169 -0
- data/third_party/closure-library/closure/goog/editor/plugins/removeformatting.js +779 -0
- data/third_party/closure-library/closure/goog/editor/plugins/removeformatting_test.html +961 -0
- data/third_party/closure-library/closure/goog/editor/plugins/spacestabhandler.js +93 -0
- data/third_party/closure-library/closure/goog/editor/plugins/spacestabhandler_test.html +186 -0
- data/third_party/closure-library/closure/goog/editor/plugins/tableeditor.js +472 -0
- data/third_party/closure-library/closure/goog/editor/plugins/tableeditor_test.html +299 -0
- data/third_party/closure-library/closure/goog/editor/plugins/tagonenterhandler.js +742 -0
- data/third_party/closure-library/closure/goog/editor/plugins/tagonenterhandler_test.html +549 -0
- data/third_party/closure-library/closure/goog/editor/plugins/undoredo.js +1015 -0
- data/third_party/closure-library/closure/goog/editor/plugins/undoredo_test.html +525 -0
- data/third_party/closure-library/closure/goog/editor/plugins/undoredomanager.js +337 -0
- data/third_party/closure-library/closure/goog/editor/plugins/undoredomanager_test.html +394 -0
- data/third_party/closure-library/closure/goog/editor/plugins/undoredostate.js +86 -0
- data/third_party/closure-library/closure/goog/editor/plugins/undoredostate_test.html +44 -0
- data/third_party/closure-library/closure/goog/editor/range.js +632 -0
- data/third_party/closure-library/closure/goog/editor/range_test.html +1004 -0
- data/third_party/closure-library/closure/goog/editor/seamlessfield.js +738 -0
- data/third_party/closure-library/closure/goog/editor/seamlessfield_quirks_test.html +28 -0
- data/third_party/closure-library/closure/goog/editor/seamlessfield_test.html +32 -0
- data/third_party/closure-library/closure/goog/editor/seamlessfield_test.js +472 -0
- data/third_party/closure-library/closure/goog/editor/style.js +222 -0
- data/third_party/closure-library/closure/goog/editor/style_test.html +177 -0
- data/third_party/closure-library/closure/goog/editor/table.js +567 -0
- data/third_party/closure-library/closure/goog/editor/table_test.html +529 -0
- data/third_party/closure-library/closure/goog/events/actioneventwrapper.js +136 -0
- data/third_party/closure-library/closure/goog/events/actioneventwrapper_test.html +211 -0
- data/third_party/closure-library/closure/goog/events/actionhandler.js +181 -0
- data/third_party/closure-library/closure/goog/events/actionhandler_test.html +82 -0
- data/third_party/closure-library/closure/goog/events/browserevent.js +411 -0
- data/third_party/closure-library/closure/goog/events/browserevent_test.html +161 -0
- data/third_party/closure-library/closure/goog/events/browserfeature.js +85 -0
- data/third_party/closure-library/closure/goog/events/event.js +154 -0
- data/third_party/closure-library/closure/goog/events/event_test.html +66 -0
- data/third_party/closure-library/closure/goog/events/eventhandler.js +291 -0
- data/third_party/closure-library/closure/goog/events/eventhandler_test.html +254 -0
- data/third_party/closure-library/closure/goog/events/events.js +1095 -0
- data/third_party/closure-library/closure/goog/events/events_test.html +659 -0
- data/third_party/closure-library/closure/goog/events/eventtarget.js +401 -0
- data/third_party/closure-library/closure/goog/events/eventtarget_test.html +70 -0
- data/third_party/closure-library/closure/goog/events/eventtarget_via_googevents_test.html +85 -0
- data/third_party/closure-library/closure/goog/events/eventtarget_via_w3cinterface_test.html +49 -0
- data/third_party/closure-library/closure/goog/events/eventtargettester.js +1028 -0
- data/third_party/closure-library/closure/goog/events/eventtype.js +165 -0
- data/third_party/closure-library/closure/goog/events/eventwrapper.js +66 -0
- data/third_party/closure-library/closure/goog/events/filedrophandler.js +221 -0
- data/third_party/closure-library/closure/goog/events/filedrophandler_test.html +258 -0
- data/third_party/closure-library/closure/goog/events/focushandler.js +106 -0
- data/third_party/closure-library/closure/goog/events/imehandler.js +363 -0
- data/third_party/closure-library/closure/goog/events/imehandler_test.html +269 -0
- data/third_party/closure-library/closure/goog/events/inputhandler.js +213 -0
- data/third_party/closure-library/closure/goog/events/keycodes.js +377 -0
- data/third_party/closure-library/closure/goog/events/keycodes_test.html +125 -0
- data/third_party/closure-library/closure/goog/events/keyhandler.js +556 -0
- data/third_party/closure-library/closure/goog/events/keyhandler_test.html +727 -0
- data/third_party/closure-library/closure/goog/events/keynames.js +132 -0
- data/third_party/closure-library/closure/goog/events/listenable.js +323 -0
- data/third_party/closure-library/closure/goog/events/listenable_test.html +31 -0
- data/third_party/closure-library/closure/goog/events/listener.js +131 -0
- data/third_party/closure-library/closure/goog/events/listenermap.js +299 -0
- data/third_party/closure-library/closure/goog/events/listenermap_test.html +19 -0
- data/third_party/closure-library/closure/goog/events/listenermap_test.js +116 -0
- data/third_party/closure-library/closure/goog/events/mousewheelhandler.js +295 -0
- data/third_party/closure-library/closure/goog/events/mousewheelhandler_test.html +385 -0
- data/third_party/closure-library/closure/goog/events/onlinehandler.js +162 -0
- data/third_party/closure-library/closure/goog/events/onlinelistener_test.html +160 -0
- data/third_party/closure-library/closure/goog/events/pastehandler.js +515 -0
- data/third_party/closure-library/closure/goog/events/pastehandler_test.html +414 -0
- data/third_party/closure-library/closure/goog/format/emailaddress.js +332 -0
- data/third_party/closure-library/closure/goog/format/emailaddress_test.html +192 -0
- data/third_party/closure-library/closure/goog/format/format.js +491 -0
- data/third_party/closure-library/closure/goog/format/format_test.html +302 -0
- data/third_party/closure-library/closure/goog/format/htmlprettyprinter.js +407 -0
- data/third_party/closure-library/closure/goog/format/htmlprettyprinter_test.html +205 -0
- data/third_party/closure-library/closure/goog/format/jsonprettyprinter.js +413 -0
- data/third_party/closure-library/closure/goog/format/jsonprettyprinter_test.html +111 -0
- data/third_party/closure-library/closure/goog/fs/entry.js +272 -0
- data/third_party/closure-library/closure/goog/fs/entryimpl.js +399 -0
- data/third_party/closure-library/closure/goog/fs/error.js +102 -0
- data/third_party/closure-library/closure/goog/fs/filereader.js +288 -0
- data/third_party/closure-library/closure/goog/fs/filesaver.js +176 -0
- data/third_party/closure-library/closure/goog/fs/filesystem.js +41 -0
- data/third_party/closure-library/closure/goog/fs/filesystemimpl.js +64 -0
- data/third_party/closure-library/closure/goog/fs/filewriter.js +110 -0
- data/third_party/closure-library/closure/goog/fs/fs.js +253 -0
- data/third_party/closure-library/closure/goog/fs/fs_test.html +754 -0
- data/third_party/closure-library/closure/goog/fs/progressevent.js +68 -0
- data/third_party/closure-library/closure/goog/functions/functions.js +255 -0
- data/third_party/closure-library/closure/goog/functions/functions_test.html +223 -0
- data/third_party/closure-library/closure/goog/fx/abstractdragdrop.js +1517 -0
- data/third_party/closure-library/closure/goog/fx/abstractdragdrop_test.html +663 -0
- data/third_party/closure-library/closure/goog/fx/anim/anim.js +210 -0
- data/third_party/closure-library/closure/goog/fx/anim/anim_test.html +225 -0
- data/third_party/closure-library/closure/goog/fx/animation.js +530 -0
- data/third_party/closure-library/closure/goog/fx/animation_test.html +117 -0
- data/third_party/closure-library/closure/goog/fx/animationqueue.js +307 -0
- data/third_party/closure-library/closure/goog/fx/animationqueue_test.html +316 -0
- data/third_party/closure-library/closure/goog/fx/css3/fx.js +62 -0
- data/third_party/closure-library/closure/goog/fx/css3/transition.js +196 -0
- data/third_party/closure-library/closure/goog/fx/css3/transition_test.html +224 -0
- data/third_party/closure-library/closure/goog/fx/cssspriteanimation.js +113 -0
- data/third_party/closure-library/closure/goog/fx/cssspriteanimation_test.html +126 -0
- data/third_party/closure-library/closure/goog/fx/dom.js +653 -0
- data/third_party/closure-library/closure/goog/fx/dragdrop.js +50 -0
- data/third_party/closure-library/closure/goog/fx/dragdropgroup.js +109 -0
- data/third_party/closure-library/closure/goog/fx/dragdropgroup_test.html +234 -0
- data/third_party/closure-library/closure/goog/fx/dragger.js +795 -0
- data/third_party/closure-library/closure/goog/fx/dragger_test.html +449 -0
- data/third_party/closure-library/closure/goog/fx/draglistgroup.js +1301 -0
- data/third_party/closure-library/closure/goog/fx/draglistgroup_test.html +403 -0
- data/third_party/closure-library/closure/goog/fx/dragscrollsupport.js +299 -0
- data/third_party/closure-library/closure/goog/fx/dragscrollsupport_test.html +354 -0
- data/third_party/closure-library/closure/goog/fx/easing.js +50 -0
- data/third_party/closure-library/closure/goog/fx/fx.js +32 -0
- data/third_party/closure-library/closure/goog/fx/fx_test.html +100 -0
- data/third_party/closure-library/closure/goog/fx/transition.js +75 -0
- data/third_party/closure-library/closure/goog/fx/transitionbase.js +237 -0
- data/third_party/closure-library/closure/goog/gears/basestore.js +521 -0
- data/third_party/closure-library/closure/goog/gears/basestore_test.html +247 -0
- data/third_party/closure-library/closure/goog/gears/database.js +934 -0
- data/third_party/closure-library/closure/goog/gears/database_test.html +699 -0
- data/third_party/closure-library/closure/goog/gears/gears.js +228 -0
- data/third_party/closure-library/closure/goog/gears/gears_test.html +78 -0
- data/third_party/closure-library/closure/goog/gears/httprequest.js +80 -0
- data/third_party/closure-library/closure/goog/gears/loggerclient.js +130 -0
- data/third_party/closure-library/closure/goog/gears/loggerclient_test.html +172 -0
- data/third_party/closure-library/closure/goog/gears/loggerserver.js +157 -0
- data/third_party/closure-library/closure/goog/gears/loggerserver_test.html +119 -0
- data/third_party/closure-library/closure/goog/gears/logstore.js +478 -0
- data/third_party/closure-library/closure/goog/gears/logstore_test.html +600 -0
- data/third_party/closure-library/closure/goog/gears/managedresourcestore.js +555 -0
- data/third_party/closure-library/closure/goog/gears/managedresourcestore_test.html +453 -0
- data/third_party/closure-library/closure/goog/gears/multipartformdata.js +204 -0
- data/third_party/closure-library/closure/goog/gears/multipartformdata_test.html +221 -0
- data/third_party/closure-library/closure/goog/gears/statustype.js +37 -0
- data/third_party/closure-library/closure/goog/gears/urlcapture.js +370 -0
- data/third_party/closure-library/closure/goog/gears/urlcapture_test.html +392 -0
- data/third_party/closure-library/closure/goog/gears/worker.js +200 -0
- data/third_party/closure-library/closure/goog/gears/workerchannel.js +205 -0
- data/third_party/closure-library/closure/goog/gears/workerchannel_test.html +207 -0
- data/third_party/closure-library/closure/goog/gears/workerpool.js +240 -0
- data/third_party/closure-library/closure/goog/gears/workerpool_test.html +204 -0
- data/third_party/closure-library/closure/goog/graphics/abstractgraphics.js +441 -0
- data/third_party/closure-library/closure/goog/graphics/affinetransform.js +587 -0
- data/third_party/closure-library/closure/goog/graphics/affinetransform_test.html +360 -0
- data/third_party/closure-library/closure/goog/graphics/canvaselement.js +792 -0
- data/third_party/closure-library/closure/goog/graphics/canvasgraphics.js +665 -0
- data/third_party/closure-library/closure/goog/graphics/element.js +151 -0
- data/third_party/closure-library/closure/goog/graphics/ellipseelement.js +64 -0
- data/third_party/closure-library/closure/goog/graphics/ext/coordinates.js +159 -0
- data/third_party/closure-library/closure/goog/graphics/ext/coordinates_test.html +74 -0
- data/third_party/closure-library/closure/goog/graphics/ext/element.js +968 -0
- data/third_party/closure-library/closure/goog/graphics/ext/element_test.html +144 -0
- data/third_party/closure-library/closure/goog/graphics/ext/ellipse.js +59 -0
- data/third_party/closure-library/closure/goog/graphics/ext/ext.js +29 -0
- data/third_party/closure-library/closure/goog/graphics/ext/graphics.js +215 -0
- data/third_party/closure-library/closure/goog/graphics/ext/group.js +215 -0
- data/third_party/closure-library/closure/goog/graphics/ext/image.js +63 -0
- data/third_party/closure-library/closure/goog/graphics/ext/path.js +142 -0
- data/third_party/closure-library/closure/goog/graphics/ext/path_test.html +46 -0
- data/third_party/closure-library/closure/goog/graphics/ext/rectangle.js +54 -0
- data/third_party/closure-library/closure/goog/graphics/ext/shape.js +146 -0
- data/third_party/closure-library/closure/goog/graphics/ext/strokeandfillelement.js +70 -0
- data/third_party/closure-library/closure/goog/graphics/fill.js +46 -0
- data/third_party/closure-library/closure/goog/graphics/font.js +63 -0
- data/third_party/closure-library/closure/goog/graphics/graphics.js +135 -0
- data/third_party/closure-library/closure/goog/graphics/groupelement.js +59 -0
- data/third_party/closure-library/closure/goog/graphics/imageelement.js +70 -0
- data/third_party/closure-library/closure/goog/graphics/lineargradient.js +174 -0
- data/third_party/closure-library/closure/goog/graphics/path.js +512 -0
- data/third_party/closure-library/closure/goog/graphics/path_test.html +359 -0
- data/third_party/closure-library/closure/goog/graphics/pathelement.js +55 -0
- data/third_party/closure-library/closure/goog/graphics/paths.js +86 -0
- data/third_party/closure-library/closure/goog/graphics/paths_test.html +98 -0
- data/third_party/closure-library/closure/goog/graphics/rectelement.js +64 -0
- data/third_party/closure-library/closure/goog/graphics/solidfill.js +74 -0
- data/third_party/closure-library/closure/goog/graphics/solidfill_test.html +53 -0
- data/third_party/closure-library/closure/goog/graphics/stroke.js +67 -0
- data/third_party/closure-library/closure/goog/graphics/strokeandfillelement.js +115 -0
- data/third_party/closure-library/closure/goog/graphics/svgelement.js +279 -0
- data/third_party/closure-library/closure/goog/graphics/svggraphics.js +857 -0
- data/third_party/closure-library/closure/goog/graphics/svggraphics_test.html +83 -0
- data/third_party/closure-library/closure/goog/graphics/textelement.js +56 -0
- data/third_party/closure-library/closure/goog/graphics/vmlelement.js +433 -0
- data/third_party/closure-library/closure/goog/graphics/vmlgraphics.js +893 -0
- data/third_party/closure-library/closure/goog/history/event.js +54 -0
- data/third_party/closure-library/closure/goog/history/eventtype.js +30 -0
- data/third_party/closure-library/closure/goog/history/history.js +998 -0
- data/third_party/closure-library/closure/goog/history/history_test.html +19 -0
- data/third_party/closure-library/closure/goog/history/history_test.js +54 -0
- data/third_party/closure-library/closure/goog/history/html5history.js +303 -0
- data/third_party/closure-library/closure/goog/history/html5history_test.html +163 -0
- data/third_party/closure-library/closure/goog/i18n/bidi.js +806 -0
- data/third_party/closure-library/closure/goog/i18n/bidi_test.html +425 -0
- data/third_party/closure-library/closure/goog/i18n/bidiformatter.js +490 -0
- data/third_party/closure-library/closure/goog/i18n/bidiformatter_test.html +343 -0
- data/third_party/closure-library/closure/goog/i18n/charlistdecompressor.js +157 -0
- data/third_party/closure-library/closure/goog/i18n/charlistdecompressor_test.html +65 -0
- data/third_party/closure-library/closure/goog/i18n/charpickerdata.js +3185 -0
- data/third_party/closure-library/closure/goog/i18n/collation.js +58 -0
- data/third_party/closure-library/closure/goog/i18n/collation_test.html +63 -0
- data/third_party/closure-library/closure/goog/i18n/compactnumberformatsymbols.js +7973 -0
- data/third_party/closure-library/closure/goog/i18n/compactnumberformatsymbols_ext.js +27549 -0
- data/third_party/closure-library/closure/goog/i18n/currency.js +424 -0
- data/third_party/closure-library/closure/goog/i18n/currency_test.html +204 -0
- data/third_party/closure-library/closure/goog/i18n/currencycodemap.js +210 -0
- data/third_party/closure-library/closure/goog/i18n/datetimeformat.js +673 -0
- data/third_party/closure-library/closure/goog/i18n/datetimeformat_test.html +532 -0
- data/third_party/closure-library/closure/goog/i18n/datetimeparse.js +1129 -0
- data/third_party/closure-library/closure/goog/i18n/datetimeparse_test.html +766 -0
- data/third_party/closure-library/closure/goog/i18n/datetimepatterns.js +1854 -0
- data/third_party/closure-library/closure/goog/i18n/datetimepatternsext.js +10947 -0
- data/third_party/closure-library/closure/goog/i18n/datetimesymbols.js +3713 -0
- data/third_party/closure-library/closure/goog/i18n/datetimesymbolsext.js +21152 -0
- data/third_party/closure-library/closure/goog/i18n/graphemebreak.js +214 -0
- data/third_party/closure-library/closure/goog/i18n/graphemebreak_test.html +80 -0
- data/third_party/closure-library/closure/goog/i18n/messageformat.js +771 -0
- data/third_party/closure-library/closure/goog/i18n/messageformat_test.html +471 -0
- data/third_party/closure-library/closure/goog/i18n/mime.js +111 -0
- data/third_party/closure-library/closure/goog/i18n/mime_test.html +51 -0
- data/third_party/closure-library/closure/goog/i18n/numberformat.js +1228 -0
- data/third_party/closure-library/closure/goog/i18n/numberformat_test.html +985 -0
- data/third_party/closure-library/closure/goog/i18n/numberformatsymbols.js +3416 -0
- data/third_party/closure-library/closure/goog/i18n/numberformatsymbolsext.js +11887 -0
- data/third_party/closure-library/closure/goog/i18n/ordinalrules.js +589 -0
- data/third_party/closure-library/closure/goog/i18n/pluralrules.js +859 -0
- data/third_party/closure-library/closure/goog/i18n/timezone.js +340 -0
- data/third_party/closure-library/closure/goog/i18n/timezone_test.html +163 -0
- data/third_party/closure-library/closure/goog/i18n/uchar.js +1368 -0
- data/third_party/closure-library/closure/goog/i18n/uchar/localnamefetcher.js +73 -0
- data/third_party/closure-library/closure/goog/i18n/uchar/localnamefetcher_test.html +62 -0
- data/third_party/closure-library/closure/goog/i18n/uchar/namefetcher.js +70 -0
- data/third_party/closure-library/closure/goog/i18n/uchar/remotenamefetcher.js +281 -0
- data/third_party/closure-library/closure/goog/i18n/uchar/remotenamefetcher_test.html +111 -0
- data/third_party/closure-library/closure/goog/i18n/uchar_test.html +133 -0
- data/third_party/closure-library/closure/goog/images/blank.gif +0 -0
- data/third_party/closure-library/closure/goog/images/bubble_close.jpg +0 -0
- data/third_party/closure-library/closure/goog/images/bubble_left.gif +0 -0
- data/third_party/closure-library/closure/goog/images/bubble_right.gif +0 -0
- data/third_party/closure-library/closure/goog/images/button-bg.gif +0 -0
- data/third_party/closure-library/closure/goog/images/check-outline.gif +0 -0
- data/third_party/closure-library/closure/goog/images/check-sprite.gif +0 -0
- data/third_party/closure-library/closure/goog/images/check.gif +0 -0
- data/third_party/closure-library/closure/goog/images/close_box.gif +0 -0
- data/third_party/closure-library/closure/goog/images/color-swatch-tick.gif +0 -0
- data/third_party/closure-library/closure/goog/images/dialog_close_box.gif +0 -0
- data/third_party/closure-library/closure/goog/images/dimension-highlighted.png +0 -0
- data/third_party/closure-library/closure/goog/images/dimension-unhighlighted.png +0 -0
- data/third_party/closure-library/closure/goog/images/dropdn.gif +0 -0
- data/third_party/closure-library/closure/goog/images/dropdn_disabled.gif +0 -0
- data/third_party/closure-library/closure/goog/images/dropdown.gif +0 -0
- data/third_party/closure-library/closure/goog/images/gears_bluedot.gif +0 -0
- data/third_party/closure-library/closure/goog/images/gears_offline.gif +0 -0
- data/third_party/closure-library/closure/goog/images/gears_online.gif +0 -0
- data/third_party/closure-library/closure/goog/images/gears_paused.gif +0 -0
- data/third_party/closure-library/closure/goog/images/gears_syncing.gif +0 -0
- data/third_party/closure-library/closure/goog/images/hsv-sprite-sm.gif +0 -0
- data/third_party/closure-library/closure/goog/images/hsv-sprite-sm.png +0 -0
- data/third_party/closure-library/closure/goog/images/hsv-sprite.gif +0 -0
- data/third_party/closure-library/closure/goog/images/hsv-sprite.png +0 -0
- data/third_party/closure-library/closure/goog/images/hsva-sprite-sm.gif +0 -0
- data/third_party/closure-library/closure/goog/images/hsva-sprite-sm.png +0 -0
- data/third_party/closure-library/closure/goog/images/hsva-sprite.gif +0 -0
- data/third_party/closure-library/closure/goog/images/hsva-sprite.png +0 -0
- data/third_party/closure-library/closure/goog/images/left_anchor_bubble_bot.gif +0 -0
- data/third_party/closure-library/closure/goog/images/left_anchor_bubble_top.gif +0 -0
- data/third_party/closure-library/closure/goog/images/menu-arrows.gif +0 -0
- data/third_party/closure-library/closure/goog/images/minus.png +0 -0
- data/third_party/closure-library/closure/goog/images/no_anchor_bubble_bot.gif +0 -0
- data/third_party/closure-library/closure/goog/images/no_anchor_bubble_top.gif +0 -0
- data/third_party/closure-library/closure/goog/images/offlineicons.png +0 -0
- data/third_party/closure-library/closure/goog/images/plus.png +0 -0
- data/third_party/closure-library/closure/goog/images/ratingstars.gif +0 -0
- data/third_party/closure-library/closure/goog/images/right_anchor_bubble_bot.gif +0 -0
- data/third_party/closure-library/closure/goog/images/right_anchor_bubble_top.gif +0 -0
- data/third_party/closure-library/closure/goog/images/toolbar-bg.png +0 -0
- data/third_party/closure-library/closure/goog/images/toolbar-separator.gif +0 -0
- data/third_party/closure-library/closure/goog/images/toolbar_icons.gif +0 -0
- data/third_party/closure-library/closure/goog/images/tree/I.png +0 -0
- data/third_party/closure-library/closure/goog/images/tree/cleardot.gif +0 -0
- data/third_party/closure-library/closure/goog/images/tree/tree.gif +0 -0
- data/third_party/closure-library/closure/goog/images/tree/tree.png +0 -0
- data/third_party/closure-library/closure/goog/images/ui_controls.jpg +0 -0
- data/third_party/closure-library/closure/goog/iter/iter.js +702 -0
- data/third_party/closure-library/closure/goog/iter/iter_test.html +479 -0
- data/third_party/closure-library/closure/goog/json/evaljsonprocessor.js +66 -0
- data/third_party/closure-library/closure/goog/json/json.js +349 -0
- data/third_party/closure-library/closure/goog/json/json_perf.html +116 -0
- data/third_party/closure-library/closure/goog/json/json_test.html +569 -0
- data/third_party/closure-library/closure/goog/json/nativejsonprocessor.js +73 -0
- data/third_party/closure-library/closure/goog/json/processor.js +33 -0
- data/third_party/closure-library/closure/goog/json/processor_test.html +89 -0
- data/third_party/closure-library/closure/goog/labs/classdef/classdef.js +162 -0
- data/third_party/closure-library/closure/goog/labs/classdef/classdef_test.html +103 -0
- data/third_party/closure-library/closure/goog/labs/events/touch.js +82 -0
- data/third_party/closure-library/closure/goog/labs/events/touch_test.html +19 -0
- data/third_party/closure-library/closure/goog/labs/events/touch_test.js +96 -0
- data/third_party/closure-library/closure/goog/labs/format/csv.js +391 -0
- data/third_party/closure-library/closure/goog/labs/format/csv_test.html +20 -0
- data/third_party/closure-library/closure/goog/labs/format/csv_test.js +169 -0
- data/third_party/closure-library/closure/goog/labs/mock/mock.js +733 -0
- data/third_party/closure-library/closure/goog/labs/mock/mock_test.html +416 -0
- data/third_party/closure-library/closure/goog/labs/net/image.js +93 -0
- data/third_party/closure-library/closure/goog/labs/net/image_test.html +21 -0
- data/third_party/closure-library/closure/goog/labs/net/image_test.js +128 -0
- data/third_party/closure-library/closure/goog/labs/net/testdata/cleardot.gif +0 -0
- data/third_party/closure-library/closure/goog/labs/net/testdata/xhr_test_json.data +2 -0
- data/third_party/closure-library/closure/goog/labs/net/testdata/xhr_test_text.data +1 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel.js +188 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/basetestchannel.js +639 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/channel.js +195 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/requeststats.js +391 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbase.js +2171 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbase_test.html +22 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbase_test.js +1400 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbasetransport.js +274 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbasetransport_test.html +228 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchanneldebug.js +298 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelrequest.js +1291 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelrequest_test.html +287 -0
- data/third_party/closure-library/closure/goog/labs/net/webchanneltransport.js +74 -0
- data/third_party/closure-library/closure/goog/labs/net/webchanneltransportfactory.js +35 -0
- data/third_party/closure-library/closure/goog/labs/net/xhr.js +449 -0
- data/third_party/closure-library/closure/goog/labs/net/xhr_test.html +455 -0
- data/third_party/closure-library/closure/goog/labs/object/object.js +46 -0
- data/third_party/closure-library/closure/goog/labs/object/object_test.html +56 -0
- data/third_party/closure-library/closure/goog/labs/observe/notice.js +63 -0
- data/third_party/closure-library/closure/goog/labs/observe/observable.js +77 -0
- data/third_party/closure-library/closure/goog/labs/observe/observableset.js +180 -0
- data/third_party/closure-library/closure/goog/labs/observe/observableset_test.html +207 -0
- data/third_party/closure-library/closure/goog/labs/observe/observationset.js +156 -0
- data/third_party/closure-library/closure/goog/labs/observe/observationset_test.html +252 -0
- data/third_party/closure-library/closure/goog/labs/observe/observer.js +100 -0
- data/third_party/closure-library/closure/goog/labs/observe/observer_test.html +65 -0
- data/third_party/closure-library/closure/goog/labs/observe/simpleobservable.js +129 -0
- data/third_party/closure-library/closure/goog/labs/observe/simpleobservable_test.html +196 -0
- data/third_party/closure-library/closure/goog/labs/structs/map.js +339 -0
- data/third_party/closure-library/closure/goog/labs/structs/map_perf.js +201 -0
- data/third_party/closure-library/closure/goog/labs/structs/map_test.html +434 -0
- data/third_party/closure-library/closure/goog/labs/structs/multimap.js +279 -0
- data/third_party/closure-library/closure/goog/labs/structs/multimap_test.html +332 -0
- data/third_party/closure-library/closure/goog/labs/style/pixeldensitymonitor.js +178 -0
- data/third_party/closure-library/closure/goog/labs/style/pixeldensitymonitor_test.html +17 -0
- data/third_party/closure-library/closure/goog/labs/style/pixeldensitymonitor_test.js +146 -0
- data/third_party/closure-library/closure/goog/labs/testing/assertthat.js +59 -0
- data/third_party/closure-library/closure/goog/labs/testing/assertthat_test.html +73 -0
- data/third_party/closure-library/closure/goog/labs/testing/decoratormatcher.js +94 -0
- data/third_party/closure-library/closure/goog/labs/testing/decoratormatcher_test.html +43 -0
- data/third_party/closure-library/closure/goog/labs/testing/dictionarymatcher.js +266 -0
- data/third_party/closure-library/closure/goog/labs/testing/dictionarymatcher_test.html +70 -0
- data/third_party/closure-library/closure/goog/labs/testing/logicmatcher.js +206 -0
- data/third_party/closure-library/closure/goog/labs/testing/logicmatcher_test.html +59 -0
- data/third_party/closure-library/closure/goog/labs/testing/matcher.js +51 -0
- data/third_party/closure-library/closure/goog/labs/testing/numbermatcher.js +334 -0
- data/third_party/closure-library/closure/goog/labs/testing/numbermatcher_test.html +79 -0
- data/third_party/closure-library/closure/goog/labs/testing/objectmatcher.js +306 -0
- data/third_party/closure-library/closure/goog/labs/testing/objectmatcher_test.html +102 -0
- data/third_party/closure-library/closure/goog/labs/testing/stringmatcher.js +402 -0
- data/third_party/closure-library/closure/goog/labs/testing/stringmatcher_test.html +101 -0
- data/third_party/closure-library/closure/goog/labs/useragent/browser.js +189 -0
- data/third_party/closure-library/closure/goog/labs/useragent/browser_test.html +21 -0
- data/third_party/closure-library/closure/goog/labs/useragent/browser_test.js +193 -0
- data/third_party/closure-library/closure/goog/labs/useragent/device.js +64 -0
- data/third_party/closure-library/closure/goog/labs/useragent/device_test.html +21 -0
- data/third_party/closure-library/closure/goog/labs/useragent/device_test.js +88 -0
- data/third_party/closure-library/closure/goog/labs/useragent/engine.js +144 -0
- data/third_party/closure-library/closure/goog/labs/useragent/engine_test.html +21 -0
- data/third_party/closure-library/closure/goog/labs/useragent/engine_test.js +164 -0
- data/third_party/closure-library/closure/goog/labs/useragent/platform.js +193 -0
- data/third_party/closure-library/closure/goog/labs/useragent/platform_test.html +21 -0
- data/third_party/closure-library/closure/goog/labs/useragent/platform_test.js +256 -0
- data/third_party/closure-library/closure/goog/labs/useragent/test_agents.js +272 -0
- data/third_party/closure-library/closure/goog/labs/useragent/util.js +89 -0
- data/third_party/closure-library/closure/goog/labs/useragent/util_test.html +22 -0
- data/third_party/closure-library/closure/goog/labs/useragent/util_test.js +60 -0
- data/third_party/closure-library/closure/goog/locale/countries.js +291 -0
- data/third_party/closure-library/closure/goog/locale/countrylanguagenames_test.html +237 -0
- data/third_party/closure-library/closure/goog/locale/defaultlocalenameconstants.js +907 -0
- data/third_party/closure-library/closure/goog/locale/genericfontnames.js +73 -0
- data/third_party/closure-library/closure/goog/locale/genericfontnames_test.html +97 -0
- data/third_party/closure-library/closure/goog/locale/genericfontnamesdata.js +327 -0
- data/third_party/closure-library/closure/goog/locale/locale.js +403 -0
- data/third_party/closure-library/closure/goog/locale/nativenameconstants.js +1354 -0
- data/third_party/closure-library/closure/goog/locale/scriptToLanguages.js +482 -0
- data/third_party/closure-library/closure/goog/locale/timezonedetection.js +117 -0
- data/third_party/closure-library/closure/goog/locale/timezonedetection_test.html +130 -0
- data/third_party/closure-library/closure/goog/locale/timezonefingerprint.js +248 -0
- data/third_party/closure-library/closure/goog/locale/timezonelist.js +131 -0
- data/third_party/closure-library/closure/goog/locale/timezonelist_test.html +165 -0
- data/third_party/closure-library/closure/goog/log/log.js +183 -0
- data/third_party/closure-library/closure/goog/log/log_test.js +169 -0
- data/third_party/closure-library/closure/goog/math/bezier.js +311 -0
- data/third_party/closure-library/closure/goog/math/bezier_test.html +112 -0
- data/third_party/closure-library/closure/goog/math/box.js +369 -0
- data/third_party/closure-library/closure/goog/math/box_test.html +298 -0
- data/third_party/closure-library/closure/goog/math/coordinate.js +233 -0
- data/third_party/closure-library/closure/goog/math/coordinate3.js +169 -0
- data/third_party/closure-library/closure/goog/math/coordinate3_test.html +204 -0
- data/third_party/closure-library/closure/goog/math/coordinate_test.html +159 -0
- data/third_party/closure-library/closure/goog/math/exponentialbackoff.js +103 -0
- data/third_party/closure-library/closure/goog/math/exponentialbackoff_test.html +67 -0
- data/third_party/closure-library/closure/goog/math/integer.js +737 -0
- data/third_party/closure-library/closure/goog/math/integer_test.html +1653 -0
- data/third_party/closure-library/closure/goog/math/interpolator/interpolator1.js +64 -0
- data/third_party/closure-library/closure/goog/math/interpolator/linear1.js +82 -0
- data/third_party/closure-library/closure/goog/math/interpolator/linear1_test.html +87 -0
- data/third_party/closure-library/closure/goog/math/interpolator/pchip1.js +81 -0
- data/third_party/closure-library/closure/goog/math/interpolator/pchip1_test.html +74 -0
- data/third_party/closure-library/closure/goog/math/interpolator/spline1.js +202 -0
- data/third_party/closure-library/closure/goog/math/interpolator/spline1_test.html +103 -0
- data/third_party/closure-library/closure/goog/math/line.js +177 -0
- data/third_party/closure-library/closure/goog/math/line_test.html +62 -0
- data/third_party/closure-library/closure/goog/math/long.js +802 -0
- data/third_party/closure-library/closure/goog/math/long_test.html +1571 -0
- data/third_party/closure-library/closure/goog/math/math.js +387 -0
- data/third_party/closure-library/closure/goog/math/math_test.html +292 -0
- data/third_party/closure-library/closure/goog/math/matrix.js +675 -0
- data/third_party/closure-library/closure/goog/math/matrix_test.html +434 -0
- data/third_party/closure-library/closure/goog/math/range.js +144 -0
- data/third_party/closure-library/closure/goog/math/range_test.html +103 -0
- data/third_party/closure-library/closure/goog/math/rangeset.js +394 -0
- data/third_party/closure-library/closure/goog/math/rangeset_test.html +664 -0
- data/third_party/closure-library/closure/goog/math/rect.js +463 -0
- data/third_party/closure-library/closure/goog/math/rect_test.html +444 -0
- data/third_party/closure-library/closure/goog/math/size.js +206 -0
- data/third_party/closure-library/closure/goog/math/size_test.html +180 -0
- data/third_party/closure-library/closure/goog/math/tdma.js +73 -0
- data/third_party/closure-library/closure/goog/math/tdma_test.html +33 -0
- data/third_party/closure-library/closure/goog/math/vec2.js +283 -0
- data/third_party/closure-library/closure/goog/math/vec2_test.html +225 -0
- data/third_party/closure-library/closure/goog/math/vec3.js +308 -0
- data/third_party/closure-library/closure/goog/math/vec3_test.html +221 -0
- data/third_party/closure-library/closure/goog/memoize/memoize.js +102 -0
- data/third_party/closure-library/closure/goog/memoize/memoize_test.html +157 -0
- data/third_party/closure-library/closure/goog/messaging/abstractchannel.js +210 -0
- data/third_party/closure-library/closure/goog/messaging/abstractchannel_test.html +89 -0
- data/third_party/closure-library/closure/goog/messaging/bufferedchannel.js +287 -0
- data/third_party/closure-library/closure/goog/messaging/bufferedchannel_test.html +283 -0
- data/third_party/closure-library/closure/goog/messaging/deferredchannel.js +98 -0
- data/third_party/closure-library/closure/goog/messaging/deferredchannel_test.html +113 -0
- data/third_party/closure-library/closure/goog/messaging/loggerclient.js +131 -0
- data/third_party/closure-library/closure/goog/messaging/loggerclient_test.html +102 -0
- data/third_party/closure-library/closure/goog/messaging/loggerserver.js +98 -0
- data/third_party/closure-library/closure/goog/messaging/loggerserver_test.html +101 -0
- data/third_party/closure-library/closure/goog/messaging/messagechannel.js +116 -0
- data/third_party/closure-library/closure/goog/messaging/messaging.js +34 -0
- data/third_party/closure-library/closure/goog/messaging/messaging_test.html +42 -0
- data/third_party/closure-library/closure/goog/messaging/multichannel.js +302 -0
- data/third_party/closure-library/closure/goog/messaging/multichannel_test.html +122 -0
- data/third_party/closure-library/closure/goog/messaging/portcaller.js +151 -0
- data/third_party/closure-library/closure/goog/messaging/portcaller_test.html +65 -0
- data/third_party/closure-library/closure/goog/messaging/portchannel.js +401 -0
- data/third_party/closure-library/closure/goog/messaging/portchannel_test.html +392 -0
- data/third_party/closure-library/closure/goog/messaging/portnetwork.js +78 -0
- data/third_party/closure-library/closure/goog/messaging/portnetwork_test.html +74 -0
- data/third_party/closure-library/closure/goog/messaging/portoperator.js +197 -0
- data/third_party/closure-library/closure/goog/messaging/portoperator_test.html +112 -0
- data/third_party/closure-library/closure/goog/messaging/respondingchannel.js +236 -0
- data/third_party/closure-library/closure/goog/messaging/respondingchannel_test.html +161 -0
- data/third_party/closure-library/closure/goog/messaging/testdata/portchannel_inner.html +28 -0
- data/third_party/closure-library/closure/goog/messaging/testdata/portchannel_worker.js +37 -0
- data/third_party/closure-library/closure/goog/messaging/testdata/portchannel_wrong_origin_inner.html +29 -0
- data/third_party/closure-library/closure/goog/messaging/testdata/portnetwork_inner.html +34 -0
- data/third_party/closure-library/closure/goog/messaging/testdata/portnetwork_worker1.js +32 -0
- data/third_party/closure-library/closure/goog/messaging/testdata/portnetwork_worker2.js +32 -0
- data/third_party/closure-library/closure/goog/module/abstractmoduleloader.js +56 -0
- data/third_party/closure-library/closure/goog/module/basemodule.js +45 -0
- data/third_party/closure-library/closure/goog/module/loader.js +269 -0
- data/third_party/closure-library/closure/goog/module/module.js +166 -0
- data/third_party/closure-library/closure/goog/module/moduleinfo.js +335 -0
- data/third_party/closure-library/closure/goog/module/moduleinfo_test.html +108 -0
- data/third_party/closure-library/closure/goog/module/moduleloadcallback.js +84 -0
- data/third_party/closure-library/closure/goog/module/moduleloadcallback_test.html +57 -0
- data/third_party/closure-library/closure/goog/module/moduleloader.js +462 -0
- data/third_party/closure-library/closure/goog/module/moduleloader_test.html +30 -0
- data/third_party/closure-library/closure/goog/module/moduleloader_test.js +438 -0
- data/third_party/closure-library/closure/goog/module/modulemanager.js +1370 -0
- data/third_party/closure-library/closure/goog/module/modulemanager_test.html +2143 -0
- data/third_party/closure-library/closure/goog/module/testdata/modA_1.js +23 -0
- data/third_party/closure-library/closure/goog/module/testdata/modA_2.js +27 -0
- data/third_party/closure-library/closure/goog/module/testdata/modB_1.js +31 -0
- data/third_party/closure-library/closure/goog/net/browserchannel.js +2757 -0
- data/third_party/closure-library/closure/goog/net/browserchannel_test.html +1328 -0
- data/third_party/closure-library/closure/goog/net/browsertestchannel.js +618 -0
- data/third_party/closure-library/closure/goog/net/bulkloader.js +181 -0
- data/third_party/closure-library/closure/goog/net/bulkloader_test.html +233 -0
- data/third_party/closure-library/closure/goog/net/bulkloaderhelper.js +127 -0
- data/third_party/closure-library/closure/goog/net/channeldebug.js +300 -0
- data/third_party/closure-library/closure/goog/net/channelrequest.js +1312 -0
- data/third_party/closure-library/closure/goog/net/channelrequest_test.html +280 -0
- data/third_party/closure-library/closure/goog/net/cookies.js +370 -0
- data/third_party/closure-library/closure/goog/net/cookies_test.html +266 -0
- data/third_party/closure-library/closure/goog/net/crossdomainrpc.js +849 -0
- data/third_party/closure-library/closure/goog/net/crossdomainrpc_test.css +7 -0
- data/third_party/closure-library/closure/goog/net/crossdomainrpc_test.gif +0 -0
- data/third_party/closure-library/closure/goog/net/crossdomainrpc_test.html +120 -0
- data/third_party/closure-library/closure/goog/net/crossdomainrpc_test_response.html +59 -0
- data/third_party/closure-library/closure/goog/net/errorcode.js +130 -0
- data/third_party/closure-library/closure/goog/net/eventtype.js +37 -0
- data/third_party/closure-library/closure/goog/net/filedownloader.js +743 -0
- data/third_party/closure-library/closure/goog/net/filedownloader_test.html +372 -0
- data/third_party/closure-library/closure/goog/net/httpstatus.js +111 -0
- data/third_party/closure-library/closure/goog/net/iframe_xhr_test.html +147 -0
- data/third_party/closure-library/closure/goog/net/iframe_xhr_test_response.html +17 -0
- data/third_party/closure-library/closure/goog/net/iframeio.js +1355 -0
- data/third_party/closure-library/closure/goog/net/iframeio_different_base_test.data +2 -0
- data/third_party/closure-library/closure/goog/net/iframeio_different_base_test.html +44 -0
- data/third_party/closure-library/closure/goog/net/iframeio_test.html +402 -0
- data/third_party/closure-library/closure/goog/net/iframeloadmonitor.js +200 -0
- data/third_party/closure-library/closure/goog/net/iframeloadmonitor_test.html +113 -0
- data/third_party/closure-library/closure/goog/net/iframeloadmonitor_test_frame.html +12 -0
- data/third_party/closure-library/closure/goog/net/iframeloadmonitor_test_frame2.html +12 -0
- data/third_party/closure-library/closure/goog/net/iframeloadmonitor_test_frame3.html +12 -0
- data/third_party/closure-library/closure/goog/net/imageloader.js +292 -0
- data/third_party/closure-library/closure/goog/net/imageloader_test.html +302 -0
- data/third_party/closure-library/closure/goog/net/imageloader_testimg1.gif +0 -0
- data/third_party/closure-library/closure/goog/net/imageloader_testimg2.gif +0 -0
- data/third_party/closure-library/closure/goog/net/imageloader_testimg3.gif +0 -0
- data/third_party/closure-library/closure/goog/net/ipaddress.js +511 -0
- data/third_party/closure-library/closure/goog/net/ipaddress_test.html +227 -0
- data/third_party/closure-library/closure/goog/net/jsloader.js +366 -0
- data/third_party/closure-library/closure/goog/net/jsloader_test.html +142 -0
- data/third_party/closure-library/closure/goog/net/jsonp.js +338 -0
- data/third_party/closure-library/closure/goog/net/jsonp_test.html +327 -0
- data/third_party/closure-library/closure/goog/net/mockiframeio.js +319 -0
- data/third_party/closure-library/closure/goog/net/multiiframeloadmonitor.js +117 -0
- data/third_party/closure-library/closure/goog/net/multiiframeloadmonitor_test.html +172 -0
- data/third_party/closure-library/closure/goog/net/networkstatusmonitor.js +47 -0
- data/third_party/closure-library/closure/goog/net/networktester.js +383 -0
- data/third_party/closure-library/closure/goog/net/networktester_test.html +227 -0
- data/third_party/closure-library/closure/goog/net/testdata/jsloader_test1.js +23 -0
- data/third_party/closure-library/closure/goog/net/testdata/jsloader_test2.js +23 -0
- data/third_party/closure-library/closure/goog/net/testdata/jsloader_test3.js +23 -0
- data/third_party/closure-library/closure/goog/net/testdata/jsloader_test4.js +23 -0
- data/third_party/closure-library/closure/goog/net/tmpnetwork.js +164 -0
- data/third_party/closure-library/closure/goog/net/websocket.js +505 -0
- data/third_party/closure-library/closure/goog/net/websocket_test.html +367 -0
- data/third_party/closure-library/closure/goog/net/wrapperxmlhttpfactory.js +68 -0
- data/third_party/closure-library/closure/goog/net/xhrio.js +1191 -0
- data/third_party/closure-library/closure/goog/net/xhrio_test.html +732 -0
- data/third_party/closure-library/closure/goog/net/xhriopool.js +80 -0
- data/third_party/closure-library/closure/goog/net/xhrmanager.js +787 -0
- data/third_party/closure-library/closure/goog/net/xhrmanager_test.html +123 -0
- data/third_party/closure-library/closure/goog/net/xmlhttp.js +228 -0
- data/third_party/closure-library/closure/goog/net/xmlhttpfactory.js +64 -0
- data/third_party/closure-library/closure/goog/net/xpc/crosspagechannel.js +805 -0
- data/third_party/closure-library/closure/goog/net/xpc/crosspagechannel_test.html +1024 -0
- data/third_party/closure-library/closure/goog/net/xpc/crosspagechannelrole.js +30 -0
- data/third_party/closure-library/closure/goog/net/xpc/frameelementmethodtransport.js +254 -0
- data/third_party/closure-library/closure/goog/net/xpc/iframepollingtransport.js +921 -0
- data/third_party/closure-library/closure/goog/net/xpc/iframepollingtransport_test.html +295 -0
- data/third_party/closure-library/closure/goog/net/xpc/iframerelaytransport.js +394 -0
- data/third_party/closure-library/closure/goog/net/xpc/nativemessagingtransport.js +649 -0
- data/third_party/closure-library/closure/goog/net/xpc/nativemessagingtransport_test.html +304 -0
- data/third_party/closure-library/closure/goog/net/xpc/nixtransport.js +479 -0
- data/third_party/closure-library/closure/goog/net/xpc/relay.js +72 -0
- data/third_party/closure-library/closure/goog/net/xpc/testdata/access_checker.html +29 -0
- data/third_party/closure-library/closure/goog/net/xpc/testdata/inner_peer.html +96 -0
- data/third_party/closure-library/closure/goog/net/xpc/transport.js +105 -0
- data/third_party/closure-library/closure/goog/net/xpc/xpc.js +293 -0
- data/third_party/closure-library/closure/goog/object/object.js +635 -0
- data/third_party/closure-library/closure/goog/object/object_test.html +466 -0
- data/third_party/closure-library/closure/goog/positioning/absoluteposition.js +74 -0
- data/third_party/closure-library/closure/goog/positioning/abstractposition.js +48 -0
- data/third_party/closure-library/closure/goog/positioning/anchoredposition.js +92 -0
- data/third_party/closure-library/closure/goog/positioning/anchoredposition_test.html +77 -0
- data/third_party/closure-library/closure/goog/positioning/anchoredviewportposition.js +191 -0
- data/third_party/closure-library/closure/goog/positioning/anchoredviewportposition_test.html +174 -0
- data/third_party/closure-library/closure/goog/positioning/anchoredviewportposition_test_iframe.html +35 -0
- data/third_party/closure-library/closure/goog/positioning/clientposition.js +88 -0
- data/third_party/closure-library/closure/goog/positioning/clientposition_test.html +22 -0
- data/third_party/closure-library/closure/goog/positioning/clientposition_test.js +122 -0
- data/third_party/closure-library/closure/goog/positioning/menuanchoredposition.js +71 -0
- data/third_party/closure-library/closure/goog/positioning/menuanchoredposition_test.html +119 -0
- data/third_party/closure-library/closure/goog/positioning/positioning.js +557 -0
- data/third_party/closure-library/closure/goog/positioning/positioning_test.html +199 -0
- data/third_party/closure-library/closure/goog/positioning/positioning_test.js +1168 -0
- data/third_party/closure-library/closure/goog/positioning/positioning_test_iframe1.html +16 -0
- data/third_party/closure-library/closure/goog/positioning/positioning_test_iframe2.html +13 -0
- data/third_party/closure-library/closure/goog/positioning/positioning_test_quirk.html +9 -0
- data/third_party/closure-library/closure/goog/positioning/positioning_test_standard.html +13 -0
- data/third_party/closure-library/closure/goog/positioning/viewportclientposition.js +121 -0
- data/third_party/closure-library/closure/goog/positioning/viewportclientposition_test.html +189 -0
- data/third_party/closure-library/closure/goog/positioning/viewportposition.js +64 -0
- data/third_party/closure-library/closure/goog/proto/proto.js +44 -0
- data/third_party/closure-library/closure/goog/proto/serializer.js +69 -0
- data/third_party/closure-library/closure/goog/proto/serializer_test.html +43 -0
- data/third_party/closure-library/closure/goog/proto2/descriptor.js +200 -0
- data/third_party/closure-library/closure/goog/proto2/descriptor_test.html +60 -0
- data/third_party/closure-library/closure/goog/proto2/fielddescriptor.js +291 -0
- data/third_party/closure-library/closure/goog/proto2/fielddescriptor_test.html +132 -0
- data/third_party/closure-library/closure/goog/proto2/lazydeserializer.js +70 -0
- data/third_party/closure-library/closure/goog/proto2/message.js +840 -0
- data/third_party/closure-library/closure/goog/proto2/message_test.html +467 -0
- data/third_party/closure-library/closure/goog/proto2/objectserializer.js +159 -0
- data/third_party/closure-library/closure/goog/proto2/objectserializer_test.html +489 -0
- data/third_party/closure-library/closure/goog/proto2/package_test.pb.js +166 -0
- data/third_party/closure-library/closure/goog/proto2/pbliteserializer.js +193 -0
- data/third_party/closure-library/closure/goog/proto2/pbliteserializer_test.html +504 -0
- data/third_party/closure-library/closure/goog/proto2/proto_test.html +693 -0
- data/third_party/closure-library/closure/goog/proto2/serializer.js +174 -0
- data/third_party/closure-library/closure/goog/proto2/test.pb.js +2876 -0
- data/third_party/closure-library/closure/goog/proto2/textformatserializer.js +995 -0
- data/third_party/closure-library/closure/goog/proto2/textformatserializer_test.html +21 -0
- data/third_party/closure-library/closure/goog/proto2/textformatserializer_test.js +629 -0
- data/third_party/closure-library/closure/goog/proto2/util.js +54 -0
- data/third_party/closure-library/closure/goog/pubsub/pubsub.js +326 -0
- data/third_party/closure-library/closure/goog/pubsub/pubsub_perf.html +298 -0
- data/third_party/closure-library/closure/goog/pubsub/pubsub_test.html +635 -0
- data/third_party/closure-library/closure/goog/reflect/reflect.js +77 -0
- data/third_party/closure-library/closure/goog/result/chain_test.html +236 -0
- data/third_party/closure-library/closure/goog/result/combine_test.html +229 -0
- data/third_party/closure-library/closure/goog/result/deferredadaptor.js +57 -0
- data/third_party/closure-library/closure/goog/result/deferredadaptor_test.html +86 -0
- data/third_party/closure-library/closure/goog/result/dependentresult.js +44 -0
- data/third_party/closure-library/closure/goog/result/result_interface.js +109 -0
- data/third_party/closure-library/closure/goog/result/resultutil.js +550 -0
- data/third_party/closure-library/closure/goog/result/resultutil_test.html +46 -0
- data/third_party/closure-library/closure/goog/result/simpleresult.js +217 -0
- data/third_party/closure-library/closure/goog/result/simpleresult_test.html +271 -0
- data/third_party/closure-library/closure/goog/result/transform_test.html +153 -0
- data/third_party/closure-library/closure/goog/result/wait_test.html +211 -0
- data/third_party/closure-library/closure/goog/soy/data.js +132 -0
- data/third_party/closure-library/closure/goog/soy/renderer.js +266 -0
- data/third_party/closure-library/closure/goog/soy/renderer_test.html +172 -0
- data/third_party/closure-library/closure/goog/soy/soy.js +205 -0
- data/third_party/closure-library/closure/goog/soy/soy_test.html +230 -0
- data/third_party/closure-library/closure/goog/soy/soy_test.js +175 -0
- data/third_party/closure-library/closure/goog/spell/spellcheck.js +475 -0
- data/third_party/closure-library/closure/goog/spell/spellcheck_test.html +112 -0
- data/third_party/closure-library/closure/goog/stats/basicstat.js +271 -0
- data/third_party/closure-library/closure/goog/stats/basicstat_test.html +167 -0
- data/third_party/closure-library/closure/goog/storage/collectablestorage.js +100 -0
- data/third_party/closure-library/closure/goog/storage/collectablestorage_test.html +76 -0
- data/third_party/closure-library/closure/goog/storage/encryptedstorage.js +201 -0
- data/third_party/closure-library/closure/goog/storage/encryptedstorage_test.html +160 -0
- data/third_party/closure-library/closure/goog/storage/errorcode.js +30 -0
- data/third_party/closure-library/closure/goog/storage/expiringstorage.js +142 -0
- data/third_party/closure-library/closure/goog/storage/expiringstorage_test.html +90 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/errorcode.js +31 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/errorhandlingmechanism.js +128 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/errorhandlingmechanism_test.html +83 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/html5localstorage.js +45 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/html5localstorage_test.html +60 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/html5sessionstorage.js +46 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/html5sessionstorage_test.html +61 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/html5webstorage.js +176 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/html5webstorage_test.html +122 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/ieuserdata.js +283 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/ieuserdata_test.html +78 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/iterablemechanism.js +86 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/iterablemechanismtester.js +117 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/mechanism.js +56 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/mechanismfactory.js +113 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/mechanismfactory_test.html +58 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/mechanismseparationtester.js +91 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/mechanismsharingtester.js +87 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/mechanismtester.js +200 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/prefixedmechanism.js +97 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/prefixedmechanism_test.html +66 -0
- data/third_party/closure-library/closure/goog/storage/richstorage.js +149 -0
- data/third_party/closure-library/closure/goog/storage/richstorage_test.html +87 -0
- data/third_party/closure-library/closure/goog/storage/storage.js +111 -0
- data/third_party/closure-library/closure/goog/storage/storage_test.html +64 -0
- data/third_party/closure-library/closure/goog/storage/storage_test.js +60 -0
- data/third_party/closure-library/closure/goog/string/linkify.js +236 -0
- data/third_party/closure-library/closure/goog/string/linkify_test.html +441 -0
- data/third_party/closure-library/closure/goog/string/newlines.js +153 -0
- data/third_party/closure-library/closure/goog/string/newlines_test.html +19 -0
- data/third_party/closure-library/closure/goog/string/newlines_test.js +87 -0
- data/third_party/closure-library/closure/goog/string/parser.js +38 -0
- data/third_party/closure-library/closure/goog/string/path.js +169 -0
- data/third_party/closure-library/closure/goog/string/path_test.html +111 -0
- data/third_party/closure-library/closure/goog/string/string.js +1378 -0
- data/third_party/closure-library/closure/goog/string/string_test.html +19 -0
- data/third_party/closure-library/closure/goog/string/string_test.js +1173 -0
- data/third_party/closure-library/closure/goog/string/stringbuffer.js +103 -0
- data/third_party/closure-library/closure/goog/string/stringbuffer_test.html +101 -0
- data/third_party/closure-library/closure/goog/string/stringformat.js +251 -0
- data/third_party/closure-library/closure/goog/string/stringformat_test.html +223 -0
- data/third_party/closure-library/closure/goog/string/stringifier.js +38 -0
- data/third_party/closure-library/closure/goog/structs/avltree.js +835 -0
- data/third_party/closure-library/closure/goog/structs/avltree_test.html +303 -0
- data/third_party/closure-library/closure/goog/structs/circularbuffer.js +223 -0
- data/third_party/closure-library/closure/goog/structs/circularbuffer_test.html +105 -0
- data/third_party/closure-library/closure/goog/structs/collection.js +55 -0
- data/third_party/closure-library/closure/goog/structs/collection_test.html +57 -0
- data/third_party/closure-library/closure/goog/structs/heap.js +333 -0
- data/third_party/closure-library/closure/goog/structs/heap_test.html +220 -0
- data/third_party/closure-library/closure/goog/structs/inversionmap.js +159 -0
- data/third_party/closure-library/closure/goog/structs/inversionmap_test.html +157 -0
- data/third_party/closure-library/closure/goog/structs/linkedmap.js +473 -0
- data/third_party/closure-library/closure/goog/structs/linkedmap_test.html +300 -0
- data/third_party/closure-library/closure/goog/structs/map.js +449 -0
- data/third_party/closure-library/closure/goog/structs/map_test.html +430 -0
- data/third_party/closure-library/closure/goog/structs/node.js +74 -0
- data/third_party/closure-library/closure/goog/structs/pool.js +381 -0
- data/third_party/closure-library/closure/goog/structs/pool_test.html +291 -0
- data/third_party/closure-library/closure/goog/structs/prioritypool.js +184 -0
- data/third_party/closure-library/closure/goog/structs/prioritypool_test.html +588 -0
- data/third_party/closure-library/closure/goog/structs/priorityqueue.js +64 -0
- data/third_party/closure-library/closure/goog/structs/priorityqueue_test.html +179 -0
- data/third_party/closure-library/closure/goog/structs/quadtree.js +571 -0
- data/third_party/closure-library/closure/goog/structs/quadtree_test.html +179 -0
- data/third_party/closure-library/closure/goog/structs/queue.js +157 -0
- data/third_party/closure-library/closure/goog/structs/queue_test.html +140 -0
- data/third_party/closure-library/closure/goog/structs/set.js +274 -0
- data/third_party/closure-library/closure/goog/structs/set_perf.html +271 -0
- data/third_party/closure-library/closure/goog/structs/set_test.html +581 -0
- data/third_party/closure-library/closure/goog/structs/simplepool.js +205 -0
- data/third_party/closure-library/closure/goog/structs/stringset.js +403 -0
- data/third_party/closure-library/closure/goog/structs/stringset_test.html +265 -0
- data/third_party/closure-library/closure/goog/structs/structs.js +351 -0
- data/third_party/closure-library/closure/goog/structs/structs_test.html +1050 -0
- data/third_party/closure-library/closure/goog/structs/treenode.js +428 -0
- data/third_party/closure-library/closure/goog/structs/treenode_test.html +370 -0
- data/third_party/closure-library/closure/goog/structs/trie.js +368 -0
- data/third_party/closure-library/closure/goog/structs/trie_test.html +378 -0
- data/third_party/closure-library/closure/goog/style/bidi.js +182 -0
- data/third_party/closure-library/closure/goog/style/bidi_test.html +211 -0
- data/third_party/closure-library/closure/goog/style/cursor.js +115 -0
- data/third_party/closure-library/closure/goog/style/cursor_test.html +132 -0
- data/third_party/closure-library/closure/goog/style/style.js +2087 -0
- data/third_party/closure-library/closure/goog/style/style_quirks_test.html +530 -0
- data/third_party/closure-library/closure/goog/style/style_test.html +518 -0
- data/third_party/closure-library/closure/goog/style/style_test.js +2602 -0
- data/third_party/closure-library/closure/goog/style/style_test_iframe_quirk.html +27 -0
- data/third_party/closure-library/closure/goog/style/style_test_iframe_standard.html +30 -0
- data/third_party/closure-library/closure/goog/style/style_test_quirk.html +9 -0
- data/third_party/closure-library/closure/goog/style/style_test_standard.html +11 -0
- data/third_party/closure-library/closure/goog/style/style_webkit_scrollbars_test.html +79 -0
- data/third_party/closure-library/closure/goog/style/stylescrollbartester.js +78 -0
- data/third_party/closure-library/closure/goog/style/transition.js +138 -0
- data/third_party/closure-library/closure/goog/style/transition_test.html +124 -0
- data/third_party/closure-library/closure/goog/testing/asserts.js +1243 -0
- data/third_party/closure-library/closure/goog/testing/asserts_test.html +1150 -0
- data/third_party/closure-library/closure/goog/testing/async/mockcontrol.js +174 -0
- data/third_party/closure-library/closure/goog/testing/async/mockcontrol_test.html +223 -0
- data/third_party/closure-library/closure/goog/testing/asynctestcase.js +824 -0
- data/third_party/closure-library/closure/goog/testing/asynctestcase_async_test.html +102 -0
- data/third_party/closure-library/closure/goog/testing/asynctestcase_noasync_test.html +98 -0
- data/third_party/closure-library/closure/goog/testing/asynctestcase_test.html +58 -0
- data/third_party/closure-library/closure/goog/testing/benchmark.js +88 -0
- data/third_party/closure-library/closure/goog/testing/continuationtestcase.js +689 -0
- data/third_party/closure-library/closure/goog/testing/continuationtestcase_test.html +352 -0
- data/third_party/closure-library/closure/goog/testing/deferredtestcase.js +155 -0
- data/third_party/closure-library/closure/goog/testing/deferredtestcase_test.html +140 -0
- data/third_party/closure-library/closure/goog/testing/dom.js +608 -0
- data/third_party/closure-library/closure/goog/testing/dom_test.html +438 -0
- data/third_party/closure-library/closure/goog/testing/editor/dom.js +293 -0
- data/third_party/closure-library/closure/goog/testing/editor/dom_test.html +295 -0
- data/third_party/closure-library/closure/goog/testing/editor/fieldmock.js +99 -0
- data/third_party/closure-library/closure/goog/testing/editor/testhelper.js +176 -0
- data/third_party/closure-library/closure/goog/testing/editor/testhelper_test.html +177 -0
- data/third_party/closure-library/closure/goog/testing/events/eventobserver.js +86 -0
- data/third_party/closure-library/closure/goog/testing/events/eventobserver_test.html +70 -0
- data/third_party/closure-library/closure/goog/testing/events/events.js +713 -0
- data/third_party/closure-library/closure/goog/testing/events/events_test.html +614 -0
- data/third_party/closure-library/closure/goog/testing/events/matchers.js +41 -0
- data/third_party/closure-library/closure/goog/testing/events/matchers_test.html +40 -0
- data/third_party/closure-library/closure/goog/testing/events/onlinehandler.js +64 -0
- data/third_party/closure-library/closure/goog/testing/events/onlinehandler_test.html +89 -0
- data/third_party/closure-library/closure/goog/testing/expectedfailures.js +236 -0
- data/third_party/closure-library/closure/goog/testing/expectedfailures_test.html +122 -0
- data/third_party/closure-library/closure/goog/testing/fs/blob.js +116 -0
- data/third_party/closure-library/closure/goog/testing/fs/blob_test.html +65 -0
- data/third_party/closure-library/closure/goog/testing/fs/directoryentry_test.html +313 -0
- data/third_party/closure-library/closure/goog/testing/fs/entry.js +621 -0
- data/third_party/closure-library/closure/goog/testing/fs/entry_test.html +227 -0
- data/third_party/closure-library/closure/goog/testing/fs/file.js +52 -0
- data/third_party/closure-library/closure/goog/testing/fs/fileentry_test.html +93 -0
- data/third_party/closure-library/closure/goog/testing/fs/filereader.js +272 -0
- data/third_party/closure-library/closure/goog/testing/fs/filereader_test.html +236 -0
- data/third_party/closure-library/closure/goog/testing/fs/filesystem.js +63 -0
- data/third_party/closure-library/closure/goog/testing/fs/filewriter.js +261 -0
- data/third_party/closure-library/closure/goog/testing/fs/filewriter_test.html +325 -0
- data/third_party/closure-library/closure/goog/testing/fs/fs.js +147 -0
- data/third_party/closure-library/closure/goog/testing/fs/fs_test.html +53 -0
- data/third_party/closure-library/closure/goog/testing/fs/integration_test.html +223 -0
- data/third_party/closure-library/closure/goog/testing/fs/progressevent.js +81 -0
- data/third_party/closure-library/closure/goog/testing/functionmock.js +177 -0
- data/third_party/closure-library/closure/goog/testing/functionmock_test.html +511 -0
- data/third_party/closure-library/closure/goog/testing/graphics.js +64 -0
- data/third_party/closure-library/closure/goog/testing/i18n/asserts.js +77 -0
- data/third_party/closure-library/closure/goog/testing/i18n/asserts_test.html +19 -0
- data/third_party/closure-library/closure/goog/testing/i18n/asserts_test.js +67 -0
- data/third_party/closure-library/closure/goog/testing/jsunit.js +156 -0
- data/third_party/closure-library/closure/goog/testing/loosemock.js +240 -0
- data/third_party/closure-library/closure/goog/testing/loosemock_test.html +343 -0
- data/third_party/closure-library/closure/goog/testing/messaging/mockmessagechannel.js +79 -0
- data/third_party/closure-library/closure/goog/testing/messaging/mockmessageevent.js +100 -0
- data/third_party/closure-library/closure/goog/testing/messaging/mockmessageport.js +85 -0
- data/third_party/closure-library/closure/goog/testing/messaging/mockportnetwork.js +65 -0
- data/third_party/closure-library/closure/goog/testing/mock.js +619 -0
- data/third_party/closure-library/closure/goog/testing/mock_test.html +264 -0
- data/third_party/closure-library/closure/goog/testing/mockclassfactory.js +578 -0
- data/third_party/closure-library/closure/goog/testing/mockclassfactory_test.html +241 -0
- data/third_party/closure-library/closure/goog/testing/mockclock.js +520 -0
- data/third_party/closure-library/closure/goog/testing/mockclock_test.html +504 -0
- data/third_party/closure-library/closure/goog/testing/mockcontrol.js +219 -0
- data/third_party/closure-library/closure/goog/testing/mockcontrol_test.html +127 -0
- data/third_party/closure-library/closure/goog/testing/mockinterface.js +45 -0
- data/third_party/closure-library/closure/goog/testing/mockmatchers.js +395 -0
- data/third_party/closure-library/closure/goog/testing/mockmatchers_test.html +388 -0
- data/third_party/closure-library/closure/goog/testing/mockrandom.js +126 -0
- data/third_party/closure-library/closure/goog/testing/mockrandom_test.html +56 -0
- data/third_party/closure-library/closure/goog/testing/mockrange.js +66 -0
- data/third_party/closure-library/closure/goog/testing/mockrange_test.html +41 -0
- data/third_party/closure-library/closure/goog/testing/mockstorage.js +107 -0
- data/third_party/closure-library/closure/goog/testing/mockstorage_test.html +78 -0
- data/third_party/closure-library/closure/goog/testing/mockuseragent.js +141 -0
- data/third_party/closure-library/closure/goog/testing/mockuseragent_test.html +59 -0
- data/third_party/closure-library/closure/goog/testing/multitestrunner.js +1439 -0
- data/third_party/closure-library/closure/goog/testing/net/xhrio.js +709 -0
- data/third_party/closure-library/closure/goog/testing/net/xhrio_test.html +384 -0
- data/third_party/closure-library/closure/goog/testing/net/xhriopool.js +64 -0
- data/third_party/closure-library/closure/goog/testing/objectpropertystring.js +67 -0
- data/third_party/closure-library/closure/goog/testing/performancetable.css +46 -0
- data/third_party/closure-library/closure/goog/testing/performancetable.js +190 -0
- data/third_party/closure-library/closure/goog/testing/performancetimer.js +405 -0
- data/third_party/closure-library/closure/goog/testing/performancetimer_test.html +201 -0
- data/third_party/closure-library/closure/goog/testing/propertyreplacer.js +243 -0
- data/third_party/closure-library/closure/goog/testing/propertyreplacer_test.html +368 -0
- data/third_party/closure-library/closure/goog/testing/proto2/proto2.js +127 -0
- data/third_party/closure-library/closure/goog/testing/proto2/proto2_test.html +117 -0
- data/third_party/closure-library/closure/goog/testing/pseudorandom.js +179 -0
- data/third_party/closure-library/closure/goog/testing/pseudorandom_test.html +98 -0
- data/third_party/closure-library/closure/goog/testing/recordfunction.js +201 -0
- data/third_party/closure-library/closure/goog/testing/recordfunction_test.html +159 -0
- data/third_party/closure-library/closure/goog/testing/shardingtestcase.js +122 -0
- data/third_party/closure-library/closure/goog/testing/shardingtestcase_test.html +34 -0
- data/third_party/closure-library/closure/goog/testing/singleton.js +46 -0
- data/third_party/closure-library/closure/goog/testing/singleton_test.html +39 -0
- data/third_party/closure-library/closure/goog/testing/stacktrace.js +555 -0
- data/third_party/closure-library/closure/goog/testing/stacktrace_test.html +327 -0
- data/third_party/closure-library/closure/goog/testing/storage/fakemechanism.js +66 -0
- data/third_party/closure-library/closure/goog/testing/strictmock.js +128 -0
- data/third_party/closure-library/closure/goog/testing/strictmock_test.html +412 -0
- data/third_party/closure-library/closure/goog/testing/style/layoutasserts.js +310 -0
- data/third_party/closure-library/closure/goog/testing/style/layoutasserts_test.html +269 -0
- data/third_party/closure-library/closure/goog/testing/style/style.js +101 -0
- data/third_party/closure-library/closure/goog/testing/style/style_test.html +162 -0
- data/third_party/closure-library/closure/goog/testing/testcase.js +1233 -0
- data/third_party/closure-library/closure/goog/testing/testqueue.js +66 -0
- data/third_party/closure-library/closure/goog/testing/testrunner.js +399 -0
- data/third_party/closure-library/closure/goog/testing/ui/rendererasserts.js +56 -0
- data/third_party/closure-library/closure/goog/testing/ui/rendererasserts_test.html +52 -0
- data/third_party/closure-library/closure/goog/testing/ui/rendererharness.js +176 -0
- data/third_party/closure-library/closure/goog/testing/ui/style.js +137 -0
- data/third_party/closure-library/closure/goog/testing/ui/style_reference.html +27 -0
- data/third_party/closure-library/closure/goog/testing/ui/style_test.html +130 -0
- data/third_party/closure-library/closure/goog/timer/timer.js +291 -0
- data/third_party/closure-library/closure/goog/timer/timer_test.html +118 -0
- data/third_party/closure-library/closure/goog/tweak/entries.js +997 -0
- data/third_party/closure-library/closure/goog/tweak/entries_test.html +94 -0
- data/third_party/closure-library/closure/goog/tweak/registry.js +310 -0
- data/third_party/closure-library/closure/goog/tweak/registry_test.html +145 -0
- data/third_party/closure-library/closure/goog/tweak/testhelpers.js +119 -0
- data/third_party/closure-library/closure/goog/tweak/tweak.js +301 -0
- data/third_party/closure-library/closure/goog/tweak/tweakui.js +817 -0
- data/third_party/closure-library/closure/goog/tweak/tweakui_test.html +280 -0
- data/third_party/closure-library/closure/goog/ui/abstractspellchecker.js +1138 -0
- data/third_party/closure-library/closure/goog/ui/ac/ac.js +50 -0
- data/third_party/closure-library/closure/goog/ui/ac/ac_test.html +204 -0
- data/third_party/closure-library/closure/goog/ui/ac/arraymatcher.js +162 -0
- data/third_party/closure-library/closure/goog/ui/ac/arraymatcher_test.html +130 -0
- data/third_party/closure-library/closure/goog/ui/ac/autocomplete.js +919 -0
- data/third_party/closure-library/closure/goog/ui/ac/autocomplete_test.html +1613 -0
- data/third_party/closure-library/closure/goog/ui/ac/inputhandler.js +1308 -0
- data/third_party/closure-library/closure/goog/ui/ac/inputhandler_test.html +685 -0
- data/third_party/closure-library/closure/goog/ui/ac/remote.js +114 -0
- data/third_party/closure-library/closure/goog/ui/ac/remotearraymatcher.js +271 -0
- data/third_party/closure-library/closure/goog/ui/ac/remotearraymatcher_test.html +73 -0
- data/third_party/closure-library/closure/goog/ui/ac/renderer.js +1023 -0
- data/third_party/closure-library/closure/goog/ui/ac/renderer_test.html +606 -0
- data/third_party/closure-library/closure/goog/ui/ac/renderoptions.js +80 -0
- data/third_party/closure-library/closure/goog/ui/ac/richinputhandler.js +58 -0
- data/third_party/closure-library/closure/goog/ui/ac/richremote.js +107 -0
- data/third_party/closure-library/closure/goog/ui/ac/richremotearraymatcher.js +125 -0
- data/third_party/closure-library/closure/goog/ui/activitymonitor.js +347 -0
- data/third_party/closure-library/closure/goog/ui/activitymonitor_test.html +150 -0
- data/third_party/closure-library/closure/goog/ui/advancedtooltip.js +366 -0
- data/third_party/closure-library/closure/goog/ui/advancedtooltip_test.html +296 -0
- data/third_party/closure-library/closure/goog/ui/animatedzippy.js +199 -0
- data/third_party/closure-library/closure/goog/ui/animatedzippy_test.html +139 -0
- data/third_party/closure-library/closure/goog/ui/attachablemenu.js +473 -0
- data/third_party/closure-library/closure/goog/ui/bidiinput.js +178 -0
- data/third_party/closure-library/closure/goog/ui/bidiinput_test.html +131 -0
- data/third_party/closure-library/closure/goog/ui/bubble.js +472 -0
- data/third_party/closure-library/closure/goog/ui/button.js +213 -0
- data/third_party/closure-library/closure/goog/ui/button_perf.html +176 -0
- data/third_party/closure-library/closure/goog/ui/button_test.html +257 -0
- data/third_party/closure-library/closure/goog/ui/buttonrenderer.js +214 -0
- data/third_party/closure-library/closure/goog/ui/buttonrenderer_test.html +223 -0
- data/third_party/closure-library/closure/goog/ui/buttonside.js +41 -0
- data/third_party/closure-library/closure/goog/ui/charcounter.js +199 -0
- data/third_party/closure-library/closure/goog/ui/charpicker.js +880 -0
- data/third_party/closure-library/closure/goog/ui/charpicker_test.html +88 -0
- data/third_party/closure-library/closure/goog/ui/checkbox.js +269 -0
- data/third_party/closure-library/closure/goog/ui/checkbox_test.html +370 -0
- data/third_party/closure-library/closure/goog/ui/checkboxmenuitem.js +53 -0
- data/third_party/closure-library/closure/goog/ui/checkboxrenderer.js +171 -0
- data/third_party/closure-library/closure/goog/ui/colorbutton.js +58 -0
- data/third_party/closure-library/closure/goog/ui/colorbutton_test.html +70 -0
- data/third_party/closure-library/closure/goog/ui/colorbuttonrenderer.js +72 -0
- data/third_party/closure-library/closure/goog/ui/colormenubutton.js +215 -0
- data/third_party/closure-library/closure/goog/ui/colormenubuttonrenderer.js +144 -0
- data/third_party/closure-library/closure/goog/ui/colormenubuttonrenderer_test.html +88 -0
- data/third_party/closure-library/closure/goog/ui/colorpalette.js +177 -0
- data/third_party/closure-library/closure/goog/ui/colorpalette_test.html +174 -0
- data/third_party/closure-library/closure/goog/ui/colorpicker.js +344 -0
- data/third_party/closure-library/closure/goog/ui/colorsplitbehavior.js +60 -0
- data/third_party/closure-library/closure/goog/ui/combobox.js +961 -0
- data/third_party/closure-library/closure/goog/ui/combobox_test.html +292 -0
- data/third_party/closure-library/closure/goog/ui/component.js +1300 -0
- data/third_party/closure-library/closure/goog/ui/component_test.html +889 -0
- data/third_party/closure-library/closure/goog/ui/container.js +1322 -0
- data/third_party/closure-library/closure/goog/ui/container_perf.html +55 -0
- data/third_party/closure-library/closure/goog/ui/container_test.html +458 -0
- data/third_party/closure-library/closure/goog/ui/containerrenderer.js +371 -0
- data/third_party/closure-library/closure/goog/ui/containerrenderer_test.html +228 -0
- data/third_party/closure-library/closure/goog/ui/containerscroller.js +222 -0
- data/third_party/closure-library/closure/goog/ui/containerscroller_test.html +214 -0
- data/third_party/closure-library/closure/goog/ui/control.js +1387 -0
- data/third_party/closure-library/closure/goog/ui/control_perf.html +166 -0
- data/third_party/closure-library/closure/goog/ui/control_test.html +2142 -0
- data/third_party/closure-library/closure/goog/ui/controlcontent.js +28 -0
- data/third_party/closure-library/closure/goog/ui/controlrenderer.js +855 -0
- data/third_party/closure-library/closure/goog/ui/controlrenderer_test.html +1100 -0
- data/third_party/closure-library/closure/goog/ui/cookieeditor.js +183 -0
- data/third_party/closure-library/closure/goog/ui/cookieeditor_test.html +107 -0
- data/third_party/closure-library/closure/goog/ui/css3buttonrenderer.js +152 -0
- data/third_party/closure-library/closure/goog/ui/css3menubuttonrenderer.js +147 -0
- data/third_party/closure-library/closure/goog/ui/cssnames.js +29 -0
- data/third_party/closure-library/closure/goog/ui/custombutton.js +58 -0
- data/third_party/closure-library/closure/goog/ui/custombuttonrenderer.js +267 -0
- data/third_party/closure-library/closure/goog/ui/customcolorpalette.js +139 -0
- data/third_party/closure-library/closure/goog/ui/customcolorpalette_test.html +60 -0
- data/third_party/closure-library/closure/goog/ui/datepicker.js +1369 -0
- data/third_party/closure-library/closure/goog/ui/datepicker_test.html +252 -0
- data/third_party/closure-library/closure/goog/ui/datepickerrenderer.js +55 -0
- data/third_party/closure-library/closure/goog/ui/decorate.js +38 -0
- data/third_party/closure-library/closure/goog/ui/decorate_test.html +114 -0
- data/third_party/closure-library/closure/goog/ui/defaultdatepickerrenderer.js +202 -0
- data/third_party/closure-library/closure/goog/ui/dialog.js +1556 -0
- data/third_party/closure-library/closure/goog/ui/dialog_test.html +776 -0
- data/third_party/closure-library/closure/goog/ui/dimensionpicker.js +305 -0
- data/third_party/closure-library/closure/goog/ui/dimensionpicker_test.html +171 -0
- data/third_party/closure-library/closure/goog/ui/dimensionpickerrenderer.js +416 -0
- data/third_party/closure-library/closure/goog/ui/dimensionpickerrenderer_test.html +49 -0
- data/third_party/closure-library/closure/goog/ui/dragdropdetector.js +642 -0
- data/third_party/closure-library/closure/goog/ui/drilldownrow.js +486 -0
- data/third_party/closure-library/closure/goog/ui/drilldownrow_test.html +92 -0
- data/third_party/closure-library/closure/goog/ui/editor/abstractdialog.js +440 -0
- data/third_party/closure-library/closure/goog/ui/editor/abstractdialog_test.html +473 -0
- data/third_party/closure-library/closure/goog/ui/editor/bubble.js +525 -0
- data/third_party/closure-library/closure/goog/ui/editor/bubble_test.html +264 -0
- data/third_party/closure-library/closure/goog/ui/editor/defaulttoolbar.js +1065 -0
- data/third_party/closure-library/closure/goog/ui/editor/equationeditordialog.js +123 -0
- data/third_party/closure-library/closure/goog/ui/editor/equationeditorokevent.js +49 -0
- data/third_party/closure-library/closure/goog/ui/editor/linkdialog.js +1064 -0
- data/third_party/closure-library/closure/goog/ui/editor/linkdialog_test.html +653 -0
- data/third_party/closure-library/closure/goog/ui/editor/messages.js +123 -0
- data/third_party/closure-library/closure/goog/ui/editor/tabpane.js +198 -0
- data/third_party/closure-library/closure/goog/ui/editor/toolbarcontroller.js +295 -0
- data/third_party/closure-library/closure/goog/ui/editor/toolbarfactory.js +440 -0
- data/third_party/closure-library/closure/goog/ui/editor/toolbarfactory_test.html +73 -0
- data/third_party/closure-library/closure/goog/ui/emoji/emoji.js +72 -0
- data/third_party/closure-library/closure/goog/ui/emoji/emojipalette.js +288 -0
- data/third_party/closure-library/closure/goog/ui/emoji/emojipaletterenderer.js +208 -0
- data/third_party/closure-library/closure/goog/ui/emoji/emojipicker.js +804 -0
- data/third_party/closure-library/closure/goog/ui/emoji/emojipicker_test.html +913 -0
- data/third_party/closure-library/closure/goog/ui/emoji/fast_nonprogressive_emojipicker_test.html +256 -0
- data/third_party/closure-library/closure/goog/ui/emoji/fast_progressive_emojipicker_test.html +256 -0
- data/third_party/closure-library/closure/goog/ui/emoji/popupemojipicker.js +410 -0
- data/third_party/closure-library/closure/goog/ui/emoji/popupemojipicker_test.html +80 -0
- data/third_party/closure-library/closure/goog/ui/emoji/progressiveemojipaletterenderer.js +98 -0
- data/third_party/closure-library/closure/goog/ui/emoji/spriteinfo.js +212 -0
- data/third_party/closure-library/closure/goog/ui/emoji/spriteinfo_test.html +51 -0
- data/third_party/closure-library/closure/goog/ui/equation/arrowpalette.js +47 -0
- data/third_party/closure-library/closure/goog/ui/equation/changeevent.js +37 -0
- data/third_party/closure-library/closure/goog/ui/equation/comparisonpalette.js +56 -0
- data/third_party/closure-library/closure/goog/ui/equation/editorpane.js +93 -0
- data/third_party/closure-library/closure/goog/ui/equation/equationeditor.js +220 -0
- data/third_party/closure-library/closure/goog/ui/equation/equationeditordialog.js +137 -0
- data/third_party/closure-library/closure/goog/ui/equation/greekpalette.js +75 -0
- data/third_party/closure-library/closure/goog/ui/equation/imagerenderer.js +190 -0
- data/third_party/closure-library/closure/goog/ui/equation/mathpalette.js +55 -0
- data/third_party/closure-library/closure/goog/ui/equation/menupalette.js +86 -0
- data/third_party/closure-library/closure/goog/ui/equation/palette.js +288 -0
- data/third_party/closure-library/closure/goog/ui/equation/palettemanager.js +203 -0
- data/third_party/closure-library/closure/goog/ui/equation/symbolpalette.js +74 -0
- data/third_party/closure-library/closure/goog/ui/equation/texeditor.js +141 -0
- data/third_party/closure-library/closure/goog/ui/equation/texpane.js +444 -0
- data/third_party/closure-library/closure/goog/ui/filteredmenu.js +575 -0
- data/third_party/closure-library/closure/goog/ui/filteredmenu_test.html +321 -0
- data/third_party/closure-library/closure/goog/ui/filterobservingmenuitem.js +97 -0
- data/third_party/closure-library/closure/goog/ui/filterobservingmenuitemrenderer.js +62 -0
- data/third_party/closure-library/closure/goog/ui/flatbuttonrenderer.js +146 -0
- data/third_party/closure-library/closure/goog/ui/flatmenubuttonrenderer.js +238 -0
- data/third_party/closure-library/closure/goog/ui/formpost.js +109 -0
- data/third_party/closure-library/closure/goog/ui/formpost_test.html +105 -0
- data/third_party/closure-library/closure/goog/ui/gauge.js +1011 -0
- data/third_party/closure-library/closure/goog/ui/gaugetheme.js +169 -0
- data/third_party/closure-library/closure/goog/ui/hovercard.js +456 -0
- data/third_party/closure-library/closure/goog/ui/hovercard_test.html +360 -0
- data/third_party/closure-library/closure/goog/ui/hsvapalette.js +298 -0
- data/third_party/closure-library/closure/goog/ui/hsvapalette_test.html +152 -0
- data/third_party/closure-library/closure/goog/ui/hsvpalette.js +505 -0
- data/third_party/closure-library/closure/goog/ui/hsvpalette_test.html +219 -0
- data/third_party/closure-library/closure/goog/ui/idgenerator.js +57 -0
- data/third_party/closure-library/closure/goog/ui/idletimer.js +299 -0
- data/third_party/closure-library/closure/goog/ui/idletimer_test.html +100 -0
- data/third_party/closure-library/closure/goog/ui/iframemask.js +257 -0
- data/third_party/closure-library/closure/goog/ui/iframemask_test.html +230 -0
- data/third_party/closure-library/closure/goog/ui/imagelessbuttonrenderer.js +204 -0
- data/third_party/closure-library/closure/goog/ui/imagelessmenubuttonrenderer.js +207 -0
- data/third_party/closure-library/closure/goog/ui/inputdatepicker.js +305 -0
- data/third_party/closure-library/closure/goog/ui/inputdatepicker_test.html +111 -0
- data/third_party/closure-library/closure/goog/ui/itemevent.js +50 -0
- data/third_party/closure-library/closure/goog/ui/keyboardshortcuthandler.js +1017 -0
- data/third_party/closure-library/closure/goog/ui/keyboardshortcuthandler_test.html +702 -0
- data/third_party/closure-library/closure/goog/ui/labelinput.js +592 -0
- data/third_party/closure-library/closure/goog/ui/labelinput_test.html +252 -0
- data/third_party/closure-library/closure/goog/ui/linkbuttonrenderer.js +67 -0
- data/third_party/closure-library/closure/goog/ui/media/flashobject.js +631 -0
- data/third_party/closure-library/closure/goog/ui/media/flashobject_test.html +236 -0
- data/third_party/closure-library/closure/goog/ui/media/flickr.js +308 -0
- data/third_party/closure-library/closure/goog/ui/media/flickr_test.html +114 -0
- data/third_party/closure-library/closure/goog/ui/media/googlevideo.js +281 -0
- data/third_party/closure-library/closure/goog/ui/media/googlevideo_test.html +105 -0
- data/third_party/closure-library/closure/goog/ui/media/media.js +285 -0
- data/third_party/closure-library/closure/goog/ui/media/media_test.html +118 -0
- data/third_party/closure-library/closure/goog/ui/media/mediamodel.js +960 -0
- data/third_party/closure-library/closure/goog/ui/media/mediamodel_test.html +108 -0
- data/third_party/closure-library/closure/goog/ui/media/mp3.js +228 -0
- data/third_party/closure-library/closure/goog/ui/media/mp3_test.html +78 -0
- data/third_party/closure-library/closure/goog/ui/media/photo.js +142 -0
- data/third_party/closure-library/closure/goog/ui/media/photo_test.html +62 -0
- data/third_party/closure-library/closure/goog/ui/media/picasa.js +321 -0
- data/third_party/closure-library/closure/goog/ui/media/picasa_test.html +121 -0
- data/third_party/closure-library/closure/goog/ui/media/vimeo.js +276 -0
- data/third_party/closure-library/closure/goog/ui/media/vimeo_test.html +102 -0
- data/third_party/closure-library/closure/goog/ui/media/youtube.js +357 -0
- data/third_party/closure-library/closure/goog/ui/media/youtube_test.html +243 -0
- data/third_party/closure-library/closure/goog/ui/menu.js +476 -0
- data/third_party/closure-library/closure/goog/ui/menu_test.html +167 -0
- data/third_party/closure-library/closure/goog/ui/menubar.js +44 -0
- data/third_party/closure-library/closure/goog/ui/menubardecorator.js +35 -0
- data/third_party/closure-library/closure/goog/ui/menubarrenderer.js +74 -0
- data/third_party/closure-library/closure/goog/ui/menubase.js +190 -0
- data/third_party/closure-library/closure/goog/ui/menubutton.js +903 -0
- data/third_party/closure-library/closure/goog/ui/menubutton_test.html +637 -0
- data/third_party/closure-library/closure/goog/ui/menubutton_test_frame.html +41 -0
- data/third_party/closure-library/closure/goog/ui/menubuttonrenderer.js +266 -0
- data/third_party/closure-library/closure/goog/ui/menubuttonrenderer_test.html +179 -0
- data/third_party/closure-library/closure/goog/ui/menuheader.js +62 -0
- data/third_party/closure-library/closure/goog/ui/menuheaderrenderer.js +54 -0
- data/third_party/closure-library/closure/goog/ui/menuitem.js +233 -0
- data/third_party/closure-library/closure/goog/ui/menuitem_test.html +559 -0
- data/third_party/closure-library/closure/goog/ui/menuitemrenderer.js +358 -0
- data/third_party/closure-library/closure/goog/ui/menuitemrenderer_test.html +201 -0
- data/third_party/closure-library/closure/goog/ui/menurenderer.js +123 -0
- data/third_party/closure-library/closure/goog/ui/menuseparator.js +51 -0
- data/third_party/closure-library/closure/goog/ui/menuseparatorrenderer.js +113 -0
- data/third_party/closure-library/closure/goog/ui/menuseparatorrenderer_test.html +61 -0
- data/third_party/closure-library/closure/goog/ui/mockactivitymonitor.js +71 -0
- data/third_party/closure-library/closure/goog/ui/mockactivitymonitor_test.html +19 -0
- data/third_party/closure-library/closure/goog/ui/mockactivitymonitor_test.js +94 -0
- data/third_party/closure-library/closure/goog/ui/modalpopup.js +698 -0
- data/third_party/closure-library/closure/goog/ui/modalpopup_test.html +419 -0
- data/third_party/closure-library/closure/goog/ui/nativebuttonrenderer.js +207 -0
- data/third_party/closure-library/closure/goog/ui/nativebuttonrenderer_test.html +214 -0
- data/third_party/closure-library/closure/goog/ui/offlineinstalldialog.js +1089 -0
- data/third_party/closure-library/closure/goog/ui/offlinestatuscard.js +580 -0
- data/third_party/closure-library/closure/goog/ui/offlinestatuscomponent.js +540 -0
- data/third_party/closure-library/closure/goog/ui/option.js +68 -0
- data/third_party/closure-library/closure/goog/ui/palette.js +598 -0
- data/third_party/closure-library/closure/goog/ui/palette_test.html +135 -0
- data/third_party/closure-library/closure/goog/ui/paletterenderer.js +372 -0
- data/third_party/closure-library/closure/goog/ui/paletterenderer_test.html +83 -0
- data/third_party/closure-library/closure/goog/ui/plaintextspellchecker.js +672 -0
- data/third_party/closure-library/closure/goog/ui/plaintextspellchecker_test.html +239 -0
- data/third_party/closure-library/closure/goog/ui/popup.js +344 -0
- data/third_party/closure-library/closure/goog/ui/popup_test.html +137 -0
- data/third_party/closure-library/closure/goog/ui/popupbase.js +822 -0
- data/third_party/closure-library/closure/goog/ui/popupbase_test.html +484 -0
- data/third_party/closure-library/closure/goog/ui/popupcolorpicker.js +441 -0
- data/third_party/closure-library/closure/goog/ui/popupcolorpicker_test.html +71 -0
- data/third_party/closure-library/closure/goog/ui/popupdatepicker.js +273 -0
- data/third_party/closure-library/closure/goog/ui/popupmenu.js +557 -0
- data/third_party/closure-library/closure/goog/ui/popupmenu_test.html +308 -0
- data/third_party/closure-library/closure/goog/ui/progressbar.js +401 -0
- data/third_party/closure-library/closure/goog/ui/prompt.js +405 -0
- data/third_party/closure-library/closure/goog/ui/prompt_test.html +144 -0
- data/third_party/closure-library/closure/goog/ui/rangemodel.js +302 -0
- data/third_party/closure-library/closure/goog/ui/rangemodel_test.html +270 -0
- data/third_party/closure-library/closure/goog/ui/ratings.js +451 -0
- data/third_party/closure-library/closure/goog/ui/registry.js +167 -0
- data/third_party/closure-library/closure/goog/ui/registry_test.html +237 -0
- data/third_party/closure-library/closure/goog/ui/richtextspellchecker.js +626 -0
- data/third_party/closure-library/closure/goog/ui/richtextspellchecker_test.html +247 -0
- data/third_party/closure-library/closure/goog/ui/roundedpanel.js +625 -0
- data/third_party/closure-library/closure/goog/ui/roundedpanel_test.html +57 -0
- data/third_party/closure-library/closure/goog/ui/roundedtabrenderer.js +197 -0
- data/third_party/closure-library/closure/goog/ui/scrollfloater.js +585 -0
- data/third_party/closure-library/closure/goog/ui/scrollfloater_test.html +144 -0
- data/third_party/closure-library/closure/goog/ui/select.js +434 -0
- data/third_party/closure-library/closure/goog/ui/select_test.html +235 -0
- data/third_party/closure-library/closure/goog/ui/selectionmenubutton.js +299 -0
- data/third_party/closure-library/closure/goog/ui/selectionmenubutton_test.html +237 -0
- data/third_party/closure-library/closure/goog/ui/selectionmodel.js +300 -0
- data/third_party/closure-library/closure/goog/ui/selectionmodel_test.html +225 -0
- data/third_party/closure-library/closure/goog/ui/separator.js +80 -0
- data/third_party/closure-library/closure/goog/ui/serverchart.js +1837 -0
- data/third_party/closure-library/closure/goog/ui/serverchart_test.html +638 -0
- data/third_party/closure-library/closure/goog/ui/slider.js +126 -0
- data/third_party/closure-library/closure/goog/ui/sliderbase.js +1592 -0
- data/third_party/closure-library/closure/goog/ui/sliderbase_test.html +897 -0
- data/third_party/closure-library/closure/goog/ui/splitbehavior.js +340 -0
- data/third_party/closure-library/closure/goog/ui/splitbehavior_test.html +161 -0
- data/third_party/closure-library/closure/goog/ui/splitpane.js +898 -0
- data/third_party/closure-library/closure/goog/ui/splitpane_test.html +229 -0
- data/third_party/closure-library/closure/goog/ui/style/app/buttonrenderer.js +201 -0
- data/third_party/closure-library/closure/goog/ui/style/app/buttonrenderer_test.html +155 -0
- data/third_party/closure-library/closure/goog/ui/style/app/menubuttonrenderer.js +233 -0
- data/third_party/closure-library/closure/goog/ui/style/app/menubuttonrenderer_test.html +167 -0
- data/third_party/closure-library/closure/goog/ui/style/app/primaryactionbuttonrenderer.js +88 -0
- data/third_party/closure-library/closure/goog/ui/style/app/primaryactionbuttonrenderer_test.html +76 -0
- data/third_party/closure-library/closure/goog/ui/submenu.js +667 -0
- data/third_party/closure-library/closure/goog/ui/submenu_test.html +563 -0
- data/third_party/closure-library/closure/goog/ui/submenurenderer.js +233 -0
- data/third_party/closure-library/closure/goog/ui/tab.js +102 -0
- data/third_party/closure-library/closure/goog/ui/tab_test.html +62 -0
- data/third_party/closure-library/closure/goog/ui/tabbar.js +394 -0
- data/third_party/closure-library/closure/goog/ui/tabbar_test.html +612 -0
- data/third_party/closure-library/closure/goog/ui/tabbarrenderer.js +175 -0
- data/third_party/closure-library/closure/goog/ui/tabbarrenderer_test.html +138 -0
- data/third_party/closure-library/closure/goog/ui/tablesorter.js +325 -0
- data/third_party/closure-library/closure/goog/ui/tablesorter_test.html +197 -0
- data/third_party/closure-library/closure/goog/ui/tabpane.js +675 -0
- data/third_party/closure-library/closure/goog/ui/tabpane_test.html +107 -0
- data/third_party/closure-library/closure/goog/ui/tabrenderer.js +153 -0
- data/third_party/closure-library/closure/goog/ui/tabrenderer_test.html +135 -0
- data/third_party/closure-library/closure/goog/ui/textarea.js +577 -0
- data/third_party/closure-library/closure/goog/ui/textarea_test.html +314 -0
- data/third_party/closure-library/closure/goog/ui/textarearenderer.js +169 -0
- data/third_party/closure-library/closure/goog/ui/togglebutton.js +58 -0
- data/third_party/closure-library/closure/goog/ui/toolbar.js +46 -0
- data/third_party/closure-library/closure/goog/ui/toolbarbutton.js +55 -0
- data/third_party/closure-library/closure/goog/ui/toolbarbuttonrenderer.js +57 -0
- data/third_party/closure-library/closure/goog/ui/toolbarcolormenubutton.js +58 -0
- data/third_party/closure-library/closure/goog/ui/toolbarcolormenubuttonrenderer.js +98 -0
- data/third_party/closure-library/closure/goog/ui/toolbarcolormenubuttonrenderer_test.html +66 -0
- data/third_party/closure-library/closure/goog/ui/toolbarmenubutton.js +57 -0
- data/third_party/closure-library/closure/goog/ui/toolbarmenubuttonrenderer.js +57 -0
- data/third_party/closure-library/closure/goog/ui/toolbarrenderer.js +99 -0
- data/third_party/closure-library/closure/goog/ui/toolbarselect.js +56 -0
- data/third_party/closure-library/closure/goog/ui/toolbarseparator.js +53 -0
- data/third_party/closure-library/closure/goog/ui/toolbarseparatorrenderer.js +91 -0
- data/third_party/closure-library/closure/goog/ui/toolbartogglebutton.js +54 -0
- data/third_party/closure-library/closure/goog/ui/tooltip.js +999 -0
- data/third_party/closure-library/closure/goog/ui/tooltip_test.html +380 -0
- data/third_party/closure-library/closure/goog/ui/tree/basenode.js +1458 -0
- data/third_party/closure-library/closure/goog/ui/tree/basenode_test.html +232 -0
- data/third_party/closure-library/closure/goog/ui/tree/treecontrol.js +663 -0
- data/third_party/closure-library/closure/goog/ui/tree/treecontrol_test.html +113 -0
- data/third_party/closure-library/closure/goog/ui/tree/treenode.js +107 -0
- data/third_party/closure-library/closure/goog/ui/tree/typeahead.js +332 -0
- data/third_party/closure-library/closure/goog/ui/tree/typeahead_test.html +133 -0
- data/third_party/closure-library/closure/goog/ui/tristatemenuitem.js +184 -0
- data/third_party/closure-library/closure/goog/ui/tristatemenuitemrenderer.js +84 -0
- data/third_party/closure-library/closure/goog/ui/twothumbslider.js +157 -0
- data/third_party/closure-library/closure/goog/ui/twothumbslider_test.html +39 -0
- data/third_party/closure-library/closure/goog/ui/zippy.js +445 -0
- data/third_party/closure-library/closure/goog/ui/zippy_test.html +315 -0
- data/third_party/closure-library/closure/goog/uri/uri.js +1502 -0
- data/third_party/closure-library/closure/goog/uri/uri_test.html +21 -0
- data/third_party/closure-library/closure/goog/uri/uri_test.js +1048 -0
- data/third_party/closure-library/closure/goog/uri/utils.js +1053 -0
- data/third_party/closure-library/closure/goog/uri/utils_test.html +562 -0
- data/third_party/closure-library/closure/goog/useragent/adobereader.js +90 -0
- data/third_party/closure-library/closure/goog/useragent/adobereader_test.html +34 -0
- data/third_party/closure-library/closure/goog/useragent/flash.js +153 -0
- data/third_party/closure-library/closure/goog/useragent/flash_test.html +34 -0
- data/third_party/closure-library/closure/goog/useragent/iphoto.js +87 -0
- data/third_party/closure-library/closure/goog/useragent/jscript.js +95 -0
- data/third_party/closure-library/closure/goog/useragent/jscript_test.html +65 -0
- data/third_party/closure-library/closure/goog/useragent/picasa.js +112 -0
- data/third_party/closure-library/closure/goog/useragent/platform.js +82 -0
- data/third_party/closure-library/closure/goog/useragent/platform_test.html +182 -0
- data/third_party/closure-library/closure/goog/useragent/product.js +253 -0
- data/third_party/closure-library/closure/goog/useragent/product_isversion.js +140 -0
- data/third_party/closure-library/closure/goog/useragent/product_test.html +380 -0
- data/third_party/closure-library/closure/goog/useragent/useragent.js +599 -0
- data/third_party/closure-library/closure/goog/useragent/useragent_quirks_test.html +27 -0
- data/third_party/closure-library/closure/goog/useragent/useragent_test.html +300 -0
- data/third_party/closure-library/closure/goog/vec/float32array.js +110 -0
- data/third_party/closure-library/closure/goog/vec/float32array_test.html +69 -0
- data/third_party/closure-library/closure/goog/vec/float64array.js +117 -0
- data/third_party/closure-library/closure/goog/vec/float64array_test.html +69 -0
- data/third_party/closure-library/closure/goog/vec/mat3.js +1211 -0
- data/third_party/closure-library/closure/goog/vec/mat3_test.html +465 -0
- data/third_party/closure-library/closure/goog/vec/mat3d.js +1039 -0
- data/third_party/closure-library/closure/goog/vec/mat3d_test.html +432 -0
- data/third_party/closure-library/closure/goog/vec/mat3f.js +1039 -0
- data/third_party/closure-library/closure/goog/vec/mat3f_test.html +432 -0
- data/third_party/closure-library/closure/goog/vec/mat4.js +1822 -0
- data/third_party/closure-library/closure/goog/vec/mat4_test.html +781 -0
- data/third_party/closure-library/closure/goog/vec/mat4d.js +1769 -0
- data/third_party/closure-library/closure/goog/vec/mat4d_test.html +738 -0
- data/third_party/closure-library/closure/goog/vec/mat4f.js +1769 -0
- data/third_party/closure-library/closure/goog/vec/mat4f_test.html +738 -0
- data/third_party/closure-library/closure/goog/vec/matrix3.js +720 -0
- data/third_party/closure-library/closure/goog/vec/matrix3_test.html +301 -0
- data/third_party/closure-library/closure/goog/vec/matrix4.js +1405 -0
- data/third_party/closure-library/closure/goog/vec/matrix4_test.html +626 -0
- data/third_party/closure-library/closure/goog/vec/quaternion.js +458 -0
- data/third_party/closure-library/closure/goog/vec/quaternion_test.html +195 -0
- data/third_party/closure-library/closure/goog/vec/ray.js +94 -0
- data/third_party/closure-library/closure/goog/vec/ray_test.html +66 -0
- data/third_party/closure-library/closure/goog/vec/vec.js +73 -0
- data/third_party/closure-library/closure/goog/vec/vec2.js +376 -0
- data/third_party/closure-library/closure/goog/vec/vec2_test.html +216 -0
- data/third_party/closure-library/closure/goog/vec/vec2d.js +325 -0
- data/third_party/closure-library/closure/goog/vec/vec2d_test.html +208 -0
- data/third_party/closure-library/closure/goog/vec/vec2f.js +325 -0
- data/third_party/closure-library/closure/goog/vec/vec2f_test.html +208 -0
- data/third_party/closure-library/closure/goog/vec/vec3.js +474 -0
- data/third_party/closure-library/closure/goog/vec/vec3_test.html +258 -0
- data/third_party/closure-library/closure/goog/vec/vec3d.js +358 -0
- data/third_party/closure-library/closure/goog/vec/vec3d_test.html +232 -0
- data/third_party/closure-library/closure/goog/vec/vec3f.js +358 -0
- data/third_party/closure-library/closure/goog/vec/vec3f_test.html +232 -0
- data/third_party/closure-library/closure/goog/vec/vec4.js +406 -0
- data/third_party/closure-library/closure/goog/vec/vec4_test.html +192 -0
- data/third_party/closure-library/closure/goog/vec/vec4d.js +293 -0
- data/third_party/closure-library/closure/goog/vec/vec4d_test.html +168 -0
- data/third_party/closure-library/closure/goog/vec/vec4f.js +293 -0
- data/third_party/closure-library/closure/goog/vec/vec4f_test.html +168 -0
- data/third_party/closure-library/closure/goog/vec/vec_array_perf.html +443 -0
- data/third_party/closure-library/closure/goog/vec/vec_perf.html +101 -0
- data/third_party/closure-library/closure/goog/webgl/webgl.js +2194 -0
- data/third_party/closure-library/closure/goog/window/window.js +225 -0
- data/third_party/closure-library/closure/goog/window/window_test.html +239 -0
- data/third_party/closure-library/closure/known_issues/testdata/closure_library_warnings.txt +47 -0
- data/third_party/closure-library/third_party/closure/goog/base.js +2 -0
- data/third_party/closure-library/third_party/closure/goog/caja/string/html/htmlparser.js +611 -0
- data/third_party/closure-library/third_party/closure/goog/caja/string/html/htmlsanitizer.js +605 -0
- data/third_party/closure-library/third_party/closure/goog/deps.js +20 -0
- data/third_party/closure-library/third_party/closure/goog/dojo/dom/query.js +1543 -0
- data/third_party/closure-library/third_party/closure/goog/dojo/dom/query_compiled_test.html +65 -0
- data/third_party/closure-library/third_party/closure/goog/dojo/dom/query_test.html +64 -0
- data/third_party/closure-library/third_party/closure/goog/dojo/dom/query_test.js +158 -0
- data/third_party/closure-library/third_party/closure/goog/jpeg_encoder/jpeg_encoder_basic.js +751 -0
- data/third_party/closure-library/third_party/closure/goog/loremipsum/text/loremipsum.js +712 -0
- data/third_party/closure-library/third_party/closure/goog/loremipsum/text/loremipsum_test.html +60 -0
- data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferred.js +764 -0
- data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferred_async_test.html +144 -0
- data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferred_test.html +877 -0
- data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferredlist.js +205 -0
- data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferredlist_test.html +504 -0
- data/third_party/closure-library/third_party/closure/goog/osapi/osapi.js +95 -0
- metadata +2054 -0
@@ -0,0 +1,102 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<!--
|
4
|
+
Copyright 2006 The Closure Library Authors. All Rights Reserved.
|
5
|
+
|
6
|
+
Use of this source code is governed by the Apache License, Version 2.0.
|
7
|
+
See the COPYING file for details.
|
8
|
+
-->
|
9
|
+
<head>
|
10
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
11
|
+
<title>Closure Unit Tests - goog.async.Throttle</title>
|
12
|
+
<script src="../base.js"></script>
|
13
|
+
<script>
|
14
|
+
goog.require('goog.async.Throttle');
|
15
|
+
goog.require('goog.testing.MockClock');
|
16
|
+
goog.require('goog.testing.jsunit');
|
17
|
+
</script>
|
18
|
+
</head>
|
19
|
+
<body>
|
20
|
+
|
21
|
+
<script>
|
22
|
+
|
23
|
+
function testThrottle() {
|
24
|
+
var clock = new goog.testing.MockClock(true);
|
25
|
+
|
26
|
+
var callBackCount = 0;
|
27
|
+
var callBackFunction = function() {
|
28
|
+
callBackCount++;
|
29
|
+
}
|
30
|
+
|
31
|
+
var throttle = new goog.async.Throttle(callBackFunction, 100);
|
32
|
+
assertEquals(0, callBackCount);
|
33
|
+
throttle.fire();
|
34
|
+
assertEquals(1, callBackCount);
|
35
|
+
throttle.fire();
|
36
|
+
assertEquals(1, callBackCount);
|
37
|
+
throttle.fire();
|
38
|
+
throttle.fire();
|
39
|
+
assertEquals(1, callBackCount);
|
40
|
+
clock.tick(101);
|
41
|
+
assertEquals(2, callBackCount);
|
42
|
+
clock.tick(101);
|
43
|
+
assertEquals(2, callBackCount);
|
44
|
+
|
45
|
+
throttle.fire();
|
46
|
+
assertEquals(3, callBackCount);
|
47
|
+
throttle.fire();
|
48
|
+
assertEquals(3, callBackCount);
|
49
|
+
throttle.stop();
|
50
|
+
clock.tick(101);
|
51
|
+
assertEquals(3, callBackCount);
|
52
|
+
throttle.fire();
|
53
|
+
assertEquals(4, callBackCount);
|
54
|
+
clock.tick(101);
|
55
|
+
assertEquals(4, callBackCount);
|
56
|
+
|
57
|
+
throttle.fire();
|
58
|
+
throttle.fire();
|
59
|
+
assertEquals(5, callBackCount);
|
60
|
+
throttle.pause();
|
61
|
+
throttle.resume();
|
62
|
+
assertEquals(5, callBackCount);
|
63
|
+
throttle.pause();
|
64
|
+
clock.tick(101);
|
65
|
+
assertEquals(5, callBackCount);
|
66
|
+
throttle.resume();
|
67
|
+
assertEquals(6, callBackCount);
|
68
|
+
clock.tick(101);
|
69
|
+
assertEquals(6, callBackCount);
|
70
|
+
throttle.pause();
|
71
|
+
throttle.fire();
|
72
|
+
assertEquals(6, callBackCount);
|
73
|
+
clock.tick(101);
|
74
|
+
assertEquals(6, callBackCount);
|
75
|
+
throttle.resume();
|
76
|
+
assertEquals(7, callBackCount);
|
77
|
+
|
78
|
+
throttle.pause();
|
79
|
+
throttle.pause();
|
80
|
+
clock.tick(101);
|
81
|
+
throttle.fire();
|
82
|
+
throttle.resume();
|
83
|
+
assertEquals(7, callBackCount);
|
84
|
+
throttle.resume();
|
85
|
+
assertEquals(8, callBackCount);
|
86
|
+
|
87
|
+
throttle.pause();
|
88
|
+
throttle.pause();
|
89
|
+
throttle.fire();
|
90
|
+
throttle.resume();
|
91
|
+
clock.tick(101);
|
92
|
+
assertEquals(8, callBackCount);
|
93
|
+
throttle.resume();
|
94
|
+
assertEquals(9, callBackCount);
|
95
|
+
|
96
|
+
clock.uninstall();
|
97
|
+
}
|
98
|
+
|
99
|
+
</script>
|
100
|
+
|
101
|
+
</body>
|
102
|
+
</html>
|
@@ -0,0 +1,1593 @@
|
|
1
|
+
// Copyright 2006 The Closure Library Authors. All Rights Reserved.
|
2
|
+
//
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
// you may not use this file except in compliance with the License.
|
5
|
+
// You may obtain a copy of the License at
|
6
|
+
//
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
//
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
10
|
+
// distributed under the License is distributed on an "AS-IS" BASIS,
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
// See the License for the specific language governing permissions and
|
13
|
+
// limitations under the License.
|
14
|
+
|
15
|
+
/**
|
16
|
+
* @fileoverview Bootstrap for the Google JS Library (Closure).
|
17
|
+
*
|
18
|
+
* In uncompiled mode base.js will write out Closure's deps file, unless the
|
19
|
+
* global <code>CLOSURE_NO_DEPS</code> is set to true. This allows projects to
|
20
|
+
* include their own deps file(s) from different locations.
|
21
|
+
*
|
22
|
+
*
|
23
|
+
* @provideGoog
|
24
|
+
*/
|
25
|
+
|
26
|
+
|
27
|
+
/**
|
28
|
+
* @define {boolean} Overridden to true by the compiler when --closure_pass
|
29
|
+
* or --mark_as_compiled is specified.
|
30
|
+
*/
|
31
|
+
var COMPILED = false;
|
32
|
+
|
33
|
+
|
34
|
+
/**
|
35
|
+
* Base namespace for the Closure library. Checks to see goog is already
|
36
|
+
* defined in the current scope before assigning to prevent clobbering if
|
37
|
+
* base.js is loaded more than once.
|
38
|
+
*
|
39
|
+
* @const
|
40
|
+
*/
|
41
|
+
var goog = goog || {};
|
42
|
+
|
43
|
+
|
44
|
+
/**
|
45
|
+
* Reference to the global context. In most cases this will be 'window'.
|
46
|
+
*/
|
47
|
+
goog.global = this;
|
48
|
+
|
49
|
+
|
50
|
+
/**
|
51
|
+
* A hook for overriding the define values in uncompiled mode.
|
52
|
+
*
|
53
|
+
* In uncompiled mode, {@code CLOSURE_DEFINES} may be defined before loading
|
54
|
+
* base.js. If a key is defined in {@code CLOSURE_DEFINES}, {@code goog.define}
|
55
|
+
* will use the value instead of the default value. This allows flags to be
|
56
|
+
* overwritten without compilation (this is normally accomplished with the
|
57
|
+
* compiler's "define" flag).
|
58
|
+
*
|
59
|
+
* Example:
|
60
|
+
* <pre>
|
61
|
+
* var CLOSURE_DEFINES = {'goog.DEBUG', false};
|
62
|
+
* </pre>
|
63
|
+
*
|
64
|
+
* @type {Object.<string, (string|number|boolean)>|undefined}
|
65
|
+
*/
|
66
|
+
goog.global.CLOSURE_DEFINES;
|
67
|
+
|
68
|
+
|
69
|
+
/**
|
70
|
+
* Builds an object structure for the provided namespace path, ensuring that
|
71
|
+
* names that already exist are not overwritten. For example:
|
72
|
+
* "a.b.c" -> a = {};a.b={};a.b.c={};
|
73
|
+
* Used by goog.provide and goog.exportSymbol.
|
74
|
+
* @param {string} name name of the object that this file defines.
|
75
|
+
* @param {*=} opt_object the object to expose at the end of the path.
|
76
|
+
* @param {Object=} opt_objectToExportTo The object to add the path to; default
|
77
|
+
* is |goog.global|.
|
78
|
+
* @private
|
79
|
+
*/
|
80
|
+
goog.exportPath_ = function(name, opt_object, opt_objectToExportTo) {
|
81
|
+
var parts = name.split('.');
|
82
|
+
var cur = opt_objectToExportTo || goog.global;
|
83
|
+
|
84
|
+
// Internet Explorer exhibits strange behavior when throwing errors from
|
85
|
+
// methods externed in this manner. See the testExportSymbolExceptions in
|
86
|
+
// base_test.html for an example.
|
87
|
+
if (!(parts[0] in cur) && cur.execScript) {
|
88
|
+
cur.execScript('var ' + parts[0]);
|
89
|
+
}
|
90
|
+
|
91
|
+
// Certain browsers cannot parse code in the form for((a in b); c;);
|
92
|
+
// This pattern is produced by the JSCompiler when it collapses the
|
93
|
+
// statement above into the conditional loop below. To prevent this from
|
94
|
+
// happening, use a for-loop and reserve the init logic as below.
|
95
|
+
|
96
|
+
// Parentheses added to eliminate strict JS warning in Firefox.
|
97
|
+
for (var part; parts.length && (part = parts.shift());) {
|
98
|
+
if (!parts.length && opt_object !== undefined) {
|
99
|
+
// last part and we have an object; use it
|
100
|
+
cur[part] = opt_object;
|
101
|
+
} else if (cur[part]) {
|
102
|
+
cur = cur[part];
|
103
|
+
} else {
|
104
|
+
cur = cur[part] = {};
|
105
|
+
}
|
106
|
+
}
|
107
|
+
};
|
108
|
+
|
109
|
+
|
110
|
+
/**
|
111
|
+
* Defines a named value. In uncompiled mode, the value is retreived from
|
112
|
+
* CLOSURE_DEFINES if the object is defined and has the property specified,
|
113
|
+
* and otherwise used the defined defaultValue. When compiled, the default
|
114
|
+
* can be overridden using compiler command-line options.
|
115
|
+
*
|
116
|
+
* @param {string} name The distinguished name to provide.
|
117
|
+
* @param {string|number|boolean} defaultValue
|
118
|
+
*/
|
119
|
+
goog.define = function(name, defaultValue) {
|
120
|
+
var value = defaultValue;
|
121
|
+
if (!COMPILED) {
|
122
|
+
if (goog.global.CLOSURE_DEFINES && Object.prototype.hasOwnProperty.call(
|
123
|
+
goog.global.CLOSURE_DEFINES, name)) {
|
124
|
+
value = goog.global.CLOSURE_DEFINES[name];
|
125
|
+
}
|
126
|
+
}
|
127
|
+
goog.exportPath_(name, value);
|
128
|
+
};
|
129
|
+
|
130
|
+
|
131
|
+
/**
|
132
|
+
* @define {boolean} DEBUG is provided as a convenience so that debugging code
|
133
|
+
* that should not be included in a production js_binary can be easily stripped
|
134
|
+
* by specifying --define goog.DEBUG=false to the JSCompiler. For example, most
|
135
|
+
* toString() methods should be declared inside an "if (goog.DEBUG)" conditional
|
136
|
+
* because they are generally used for debugging purposes and it is difficult
|
137
|
+
* for the JSCompiler to statically determine whether they are used.
|
138
|
+
*/
|
139
|
+
goog.DEBUG = true;
|
140
|
+
|
141
|
+
|
142
|
+
/**
|
143
|
+
* @define {string} LOCALE defines the locale being used for compilation. It is
|
144
|
+
* used to select locale specific data to be compiled in js binary. BUILD rule
|
145
|
+
* can specify this value by "--define goog.LOCALE=<locale_name>" as JSCompiler
|
146
|
+
* option.
|
147
|
+
*
|
148
|
+
* Take into account that the locale code format is important. You should use
|
149
|
+
* the canonical Unicode format with hyphen as a delimiter. Language must be
|
150
|
+
* lowercase, Language Script - Capitalized, Region - UPPERCASE.
|
151
|
+
* There are few examples: pt-BR, en, en-US, sr-Latin-BO, zh-Hans-CN.
|
152
|
+
*
|
153
|
+
* See more info about locale codes here:
|
154
|
+
* http://www.unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers
|
155
|
+
*
|
156
|
+
* For language codes you should use values defined by ISO 693-1. See it here
|
157
|
+
* http://www.w3.org/WAI/ER/IG/ert/iso639.htm. There is only one exception from
|
158
|
+
* this rule: the Hebrew language. For legacy reasons the old code (iw) should
|
159
|
+
* be used instead of the new code (he), see http://wiki/Main/IIISynonyms.
|
160
|
+
*/
|
161
|
+
goog.define('goog.LOCALE', 'en'); // default to en
|
162
|
+
|
163
|
+
|
164
|
+
/**
|
165
|
+
* @define {boolean} Whether this code is running on trusted sites.
|
166
|
+
*
|
167
|
+
* On untrusted sites, several native functions can be defined or overridden by
|
168
|
+
* external libraries like Prototype, Datejs, and JQuery and setting this flag
|
169
|
+
* to false forces closure to use its own implementations when possible.
|
170
|
+
*
|
171
|
+
* If your JavaScript can be loaded by a third party site and you are wary about
|
172
|
+
* relying on non-standard implementations, specify
|
173
|
+
* "--define goog.TRUSTED_SITE=false" to the JSCompiler.
|
174
|
+
*/
|
175
|
+
goog.define('goog.TRUSTED_SITE', true);
|
176
|
+
|
177
|
+
|
178
|
+
/**
|
179
|
+
* Creates object stubs for a namespace. The presence of one or more
|
180
|
+
* goog.provide() calls indicate that the file defines the given
|
181
|
+
* objects/namespaces. Build tools also scan for provide/require statements
|
182
|
+
* to discern dependencies, build dependency files (see deps.js), etc.
|
183
|
+
* @see goog.require
|
184
|
+
* @param {string} name Namespace provided by this file in the form
|
185
|
+
* "goog.package.part".
|
186
|
+
*/
|
187
|
+
goog.provide = function(name) {
|
188
|
+
if (!COMPILED) {
|
189
|
+
// Ensure that the same namespace isn't provided twice. This is intended
|
190
|
+
// to teach new developers that 'goog.provide' is effectively a variable
|
191
|
+
// declaration. And when JSCompiler transforms goog.provide into a real
|
192
|
+
// variable declaration, the compiled JS should work the same as the raw
|
193
|
+
// JS--even when the raw JS uses goog.provide incorrectly.
|
194
|
+
if (goog.isProvided_(name)) {
|
195
|
+
throw Error('Namespace "' + name + '" already declared.');
|
196
|
+
}
|
197
|
+
delete goog.implicitNamespaces_[name];
|
198
|
+
|
199
|
+
var namespace = name;
|
200
|
+
while ((namespace = namespace.substring(0, namespace.lastIndexOf('.')))) {
|
201
|
+
if (goog.getObjectByName(namespace)) {
|
202
|
+
break;
|
203
|
+
}
|
204
|
+
goog.implicitNamespaces_[namespace] = true;
|
205
|
+
}
|
206
|
+
}
|
207
|
+
|
208
|
+
goog.exportPath_(name);
|
209
|
+
};
|
210
|
+
|
211
|
+
|
212
|
+
/**
|
213
|
+
* Marks that the current file should only be used for testing, and never for
|
214
|
+
* live code in production.
|
215
|
+
*
|
216
|
+
* In the case of unit tests, the message may optionally be an exact namespace
|
217
|
+
* for the test (e.g. 'goog.stringTest'). The linter will then ignore the extra
|
218
|
+
* provide (if not explicitly defined in the code).
|
219
|
+
*
|
220
|
+
* @param {string=} opt_message Optional message to add to the error that's
|
221
|
+
* raised when used in production code.
|
222
|
+
*/
|
223
|
+
goog.setTestOnly = function(opt_message) {
|
224
|
+
if (COMPILED && !goog.DEBUG) {
|
225
|
+
opt_message = opt_message || '';
|
226
|
+
throw Error('Importing test-only code into non-debug environment' +
|
227
|
+
opt_message ? ': ' + opt_message : '.');
|
228
|
+
}
|
229
|
+
};
|
230
|
+
|
231
|
+
|
232
|
+
if (!COMPILED) {
|
233
|
+
|
234
|
+
/**
|
235
|
+
* Check if the given name has been goog.provided. This will return false for
|
236
|
+
* names that are available only as implicit namespaces.
|
237
|
+
* @param {string} name name of the object to look for.
|
238
|
+
* @return {boolean} Whether the name has been provided.
|
239
|
+
* @private
|
240
|
+
*/
|
241
|
+
goog.isProvided_ = function(name) {
|
242
|
+
return !goog.implicitNamespaces_[name] && !!goog.getObjectByName(name);
|
243
|
+
};
|
244
|
+
|
245
|
+
/**
|
246
|
+
* Namespaces implicitly defined by goog.provide. For example,
|
247
|
+
* goog.provide('goog.events.Event') implicitly declares that 'goog' and
|
248
|
+
* 'goog.events' must be namespaces.
|
249
|
+
*
|
250
|
+
* @type {Object}
|
251
|
+
* @private
|
252
|
+
*/
|
253
|
+
goog.implicitNamespaces_ = {};
|
254
|
+
}
|
255
|
+
|
256
|
+
|
257
|
+
/**
|
258
|
+
* Returns an object based on its fully qualified external name. If you are
|
259
|
+
* using a compilation pass that renames property names beware that using this
|
260
|
+
* function will not find renamed properties.
|
261
|
+
*
|
262
|
+
* @param {string} name The fully qualified name.
|
263
|
+
* @param {Object=} opt_obj The object within which to look; default is
|
264
|
+
* |goog.global|.
|
265
|
+
* @return {?} The value (object or primitive) or, if not found, null.
|
266
|
+
*/
|
267
|
+
goog.getObjectByName = function(name, opt_obj) {
|
268
|
+
var parts = name.split('.');
|
269
|
+
var cur = opt_obj || goog.global;
|
270
|
+
for (var part; part = parts.shift(); ) {
|
271
|
+
if (goog.isDefAndNotNull(cur[part])) {
|
272
|
+
cur = cur[part];
|
273
|
+
} else {
|
274
|
+
return null;
|
275
|
+
}
|
276
|
+
}
|
277
|
+
return cur;
|
278
|
+
};
|
279
|
+
|
280
|
+
|
281
|
+
/**
|
282
|
+
* Globalizes a whole namespace, such as goog or goog.lang.
|
283
|
+
*
|
284
|
+
* @param {Object} obj The namespace to globalize.
|
285
|
+
* @param {Object=} opt_global The object to add the properties to.
|
286
|
+
* @deprecated Properties may be explicitly exported to the global scope, but
|
287
|
+
* this should no longer be done in bulk.
|
288
|
+
*/
|
289
|
+
goog.globalize = function(obj, opt_global) {
|
290
|
+
var global = opt_global || goog.global;
|
291
|
+
for (var x in obj) {
|
292
|
+
global[x] = obj[x];
|
293
|
+
}
|
294
|
+
};
|
295
|
+
|
296
|
+
|
297
|
+
/**
|
298
|
+
* Adds a dependency from a file to the files it requires.
|
299
|
+
* @param {string} relPath The path to the js file.
|
300
|
+
* @param {Array} provides An array of strings with the names of the objects
|
301
|
+
* this file provides.
|
302
|
+
* @param {Array} requires An array of strings with the names of the objects
|
303
|
+
* this file requires.
|
304
|
+
*/
|
305
|
+
goog.addDependency = function(relPath, provides, requires) {
|
306
|
+
if (goog.DEPENDENCIES_ENABLED) {
|
307
|
+
var provide, require;
|
308
|
+
var path = relPath.replace(/\\/g, '/');
|
309
|
+
var deps = goog.dependencies_;
|
310
|
+
for (var i = 0; provide = provides[i]; i++) {
|
311
|
+
deps.nameToPath[provide] = path;
|
312
|
+
if (!(path in deps.pathToNames)) {
|
313
|
+
deps.pathToNames[path] = {};
|
314
|
+
}
|
315
|
+
deps.pathToNames[path][provide] = true;
|
316
|
+
}
|
317
|
+
for (var j = 0; require = requires[j]; j++) {
|
318
|
+
if (!(path in deps.requires)) {
|
319
|
+
deps.requires[path] = {};
|
320
|
+
}
|
321
|
+
deps.requires[path][require] = true;
|
322
|
+
}
|
323
|
+
}
|
324
|
+
};
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
// NOTE(nnaze): The debug DOM loader was included in base.js as an original way
|
330
|
+
// to do "debug-mode" development. The dependency system can sometimes be
|
331
|
+
// confusing, as can the debug DOM loader's asynchronous nature.
|
332
|
+
//
|
333
|
+
// With the DOM loader, a call to goog.require() is not blocking -- the script
|
334
|
+
// will not load until some point after the current script. If a namespace is
|
335
|
+
// needed at runtime, it needs to be defined in a previous script, or loaded via
|
336
|
+
// require() with its registered dependencies.
|
337
|
+
// User-defined namespaces may need their own deps file. See http://go/js_deps,
|
338
|
+
// http://go/genjsdeps, or, externally, DepsWriter.
|
339
|
+
// http://code.google.com/closure/library/docs/depswriter.html
|
340
|
+
//
|
341
|
+
// Because of legacy clients, the DOM loader can't be easily removed from
|
342
|
+
// base.js. Work is being done to make it disableable or replaceable for
|
343
|
+
// different environments (DOM-less JavaScript interpreters like Rhino or V8,
|
344
|
+
// for example). See bootstrap/ for more information.
|
345
|
+
|
346
|
+
|
347
|
+
/**
|
348
|
+
* @define {boolean} Whether to enable the debug loader.
|
349
|
+
*
|
350
|
+
* If enabled, a call to goog.require() will attempt to load the namespace by
|
351
|
+
* appending a script tag to the DOM (if the namespace has been registered).
|
352
|
+
*
|
353
|
+
* If disabled, goog.require() will simply assert that the namespace has been
|
354
|
+
* provided (and depend on the fact that some outside tool correctly ordered
|
355
|
+
* the script).
|
356
|
+
*/
|
357
|
+
goog.define('goog.ENABLE_DEBUG_LOADER', true);
|
358
|
+
|
359
|
+
|
360
|
+
/**
|
361
|
+
* Implements a system for the dynamic resolution of dependencies that works in
|
362
|
+
* parallel with the BUILD system. Note that all calls to goog.require will be
|
363
|
+
* stripped by the JSCompiler when the --closure_pass option is used.
|
364
|
+
* @see goog.provide
|
365
|
+
* @param {string} name Namespace to include (as was given in goog.provide()) in
|
366
|
+
* the form "goog.package.part".
|
367
|
+
*/
|
368
|
+
goog.require = function(name) {
|
369
|
+
|
370
|
+
// If the object already exists we do not need do do anything.
|
371
|
+
// TODO(arv): If we start to support require based on file name this has to
|
372
|
+
// change.
|
373
|
+
// TODO(arv): If we allow goog.foo.* this has to change.
|
374
|
+
// TODO(arv): If we implement dynamic load after page load we should probably
|
375
|
+
// not remove this code for the compiled output.
|
376
|
+
if (!COMPILED) {
|
377
|
+
if (goog.isProvided_(name)) {
|
378
|
+
return;
|
379
|
+
}
|
380
|
+
|
381
|
+
if (goog.ENABLE_DEBUG_LOADER) {
|
382
|
+
var path = goog.getPathFromDeps_(name);
|
383
|
+
if (path) {
|
384
|
+
goog.included_[path] = true;
|
385
|
+
goog.writeScripts_();
|
386
|
+
return;
|
387
|
+
}
|
388
|
+
}
|
389
|
+
|
390
|
+
var errorMessage = 'goog.require could not find: ' + name;
|
391
|
+
if (goog.global.console) {
|
392
|
+
goog.global.console['error'](errorMessage);
|
393
|
+
}
|
394
|
+
|
395
|
+
|
396
|
+
throw Error(errorMessage);
|
397
|
+
|
398
|
+
}
|
399
|
+
};
|
400
|
+
|
401
|
+
|
402
|
+
/**
|
403
|
+
* Path for included scripts.
|
404
|
+
* @type {string}
|
405
|
+
*/
|
406
|
+
goog.basePath = '';
|
407
|
+
|
408
|
+
|
409
|
+
/**
|
410
|
+
* A hook for overriding the base path.
|
411
|
+
* @type {string|undefined}
|
412
|
+
*/
|
413
|
+
goog.global.CLOSURE_BASE_PATH;
|
414
|
+
|
415
|
+
|
416
|
+
/**
|
417
|
+
* Whether to write out Closure's deps file. By default, the deps are written.
|
418
|
+
* @type {boolean|undefined}
|
419
|
+
*/
|
420
|
+
goog.global.CLOSURE_NO_DEPS;
|
421
|
+
|
422
|
+
|
423
|
+
/**
|
424
|
+
* A function to import a single script. This is meant to be overridden when
|
425
|
+
* Closure is being run in non-HTML contexts, such as web workers. It's defined
|
426
|
+
* in the global scope so that it can be set before base.js is loaded, which
|
427
|
+
* allows deps.js to be imported properly.
|
428
|
+
*
|
429
|
+
* The function is passed the script source, which is a relative URI. It should
|
430
|
+
* return true if the script was imported, false otherwise.
|
431
|
+
*/
|
432
|
+
goog.global.CLOSURE_IMPORT_SCRIPT;
|
433
|
+
|
434
|
+
|
435
|
+
/**
|
436
|
+
* Null function used for default values of callbacks, etc.
|
437
|
+
* @return {void} Nothing.
|
438
|
+
*/
|
439
|
+
goog.nullFunction = function() {};
|
440
|
+
|
441
|
+
|
442
|
+
/**
|
443
|
+
* The identity function. Returns its first argument.
|
444
|
+
*
|
445
|
+
* @param {*=} opt_returnValue The single value that will be returned.
|
446
|
+
* @param {...*} var_args Optional trailing arguments. These are ignored.
|
447
|
+
* @return {?} The first argument. We can't know the type -- just pass it along
|
448
|
+
* without type.
|
449
|
+
* @deprecated Use goog.functions.identity instead.
|
450
|
+
*/
|
451
|
+
goog.identityFunction = function(opt_returnValue, var_args) {
|
452
|
+
return opt_returnValue;
|
453
|
+
};
|
454
|
+
|
455
|
+
|
456
|
+
/**
|
457
|
+
* When defining a class Foo with an abstract method bar(), you can do:
|
458
|
+
* Foo.prototype.bar = goog.abstractMethod
|
459
|
+
*
|
460
|
+
* Now if a subclass of Foo fails to override bar(), an error will be thrown
|
461
|
+
* when bar() is invoked.
|
462
|
+
*
|
463
|
+
* Note: This does not take the name of the function to override as an argument
|
464
|
+
* because that would make it more difficult to obfuscate our JavaScript code.
|
465
|
+
*
|
466
|
+
* @type {!Function}
|
467
|
+
* @throws {Error} when invoked to indicate the method should be overridden.
|
468
|
+
*/
|
469
|
+
goog.abstractMethod = function() {
|
470
|
+
throw Error('unimplemented abstract method');
|
471
|
+
};
|
472
|
+
|
473
|
+
|
474
|
+
/**
|
475
|
+
* Adds a {@code getInstance} static method that always returns the same
|
476
|
+
* instance object.
|
477
|
+
* @param {!Function} ctor The constructor for the class to add the static
|
478
|
+
* method to.
|
479
|
+
*/
|
480
|
+
goog.addSingletonGetter = function(ctor) {
|
481
|
+
ctor.getInstance = function() {
|
482
|
+
if (ctor.instance_) {
|
483
|
+
return ctor.instance_;
|
484
|
+
}
|
485
|
+
if (goog.DEBUG) {
|
486
|
+
// NOTE: JSCompiler can't optimize away Array#push.
|
487
|
+
goog.instantiatedSingletons_[goog.instantiatedSingletons_.length] = ctor;
|
488
|
+
}
|
489
|
+
return ctor.instance_ = new ctor;
|
490
|
+
};
|
491
|
+
};
|
492
|
+
|
493
|
+
|
494
|
+
/**
|
495
|
+
* All singleton classes that have been instantiated, for testing. Don't read
|
496
|
+
* it directly, use the {@code goog.testing.singleton} module. The compiler
|
497
|
+
* removes this variable if unused.
|
498
|
+
* @type {!Array.<!Function>}
|
499
|
+
* @private
|
500
|
+
*/
|
501
|
+
goog.instantiatedSingletons_ = [];
|
502
|
+
|
503
|
+
|
504
|
+
/**
|
505
|
+
* True if goog.dependencies_ is available.
|
506
|
+
* @const {boolean}
|
507
|
+
*/
|
508
|
+
goog.DEPENDENCIES_ENABLED = !COMPILED && goog.ENABLE_DEBUG_LOADER;
|
509
|
+
|
510
|
+
|
511
|
+
if (goog.DEPENDENCIES_ENABLED) {
|
512
|
+
/**
|
513
|
+
* Object used to keep track of urls that have already been added. This record
|
514
|
+
* allows the prevention of circular dependencies.
|
515
|
+
* @type {Object}
|
516
|
+
* @private
|
517
|
+
*/
|
518
|
+
goog.included_ = {};
|
519
|
+
|
520
|
+
|
521
|
+
/**
|
522
|
+
* This object is used to keep track of dependencies and other data that is
|
523
|
+
* used for loading scripts.
|
524
|
+
* @private
|
525
|
+
* @type {Object}
|
526
|
+
*/
|
527
|
+
goog.dependencies_ = {
|
528
|
+
pathToNames: {}, // 1 to many
|
529
|
+
nameToPath: {}, // 1 to 1
|
530
|
+
requires: {}, // 1 to many
|
531
|
+
// Used when resolving dependencies to prevent us from visiting file twice.
|
532
|
+
visited: {},
|
533
|
+
written: {} // Used to keep track of script files we have written.
|
534
|
+
};
|
535
|
+
|
536
|
+
|
537
|
+
/**
|
538
|
+
* Tries to detect whether is in the context of an HTML document.
|
539
|
+
* @return {boolean} True if it looks like HTML document.
|
540
|
+
* @private
|
541
|
+
*/
|
542
|
+
goog.inHtmlDocument_ = function() {
|
543
|
+
var doc = goog.global.document;
|
544
|
+
return typeof doc != 'undefined' &&
|
545
|
+
'write' in doc; // XULDocument misses write.
|
546
|
+
};
|
547
|
+
|
548
|
+
|
549
|
+
/**
|
550
|
+
* Tries to detect the base path of base.js script that bootstraps Closure.
|
551
|
+
* @private
|
552
|
+
*/
|
553
|
+
goog.findBasePath_ = function() {
|
554
|
+
if (goog.global.CLOSURE_BASE_PATH) {
|
555
|
+
goog.basePath = goog.global.CLOSURE_BASE_PATH;
|
556
|
+
return;
|
557
|
+
} else if (!goog.inHtmlDocument_()) {
|
558
|
+
return;
|
559
|
+
}
|
560
|
+
var doc = goog.global.document;
|
561
|
+
var scripts = doc.getElementsByTagName('script');
|
562
|
+
// Search backwards since the current script is in almost all cases the one
|
563
|
+
// that has base.js.
|
564
|
+
for (var i = scripts.length - 1; i >= 0; --i) {
|
565
|
+
var src = scripts[i].src;
|
566
|
+
var qmark = src.lastIndexOf('?');
|
567
|
+
var l = qmark == -1 ? src.length : qmark;
|
568
|
+
if (src.substr(l - 7, 7) == 'base.js') {
|
569
|
+
goog.basePath = src.substr(0, l - 7);
|
570
|
+
return;
|
571
|
+
}
|
572
|
+
}
|
573
|
+
};
|
574
|
+
|
575
|
+
|
576
|
+
/**
|
577
|
+
* Imports a script if, and only if, that script hasn't already been imported.
|
578
|
+
* (Must be called at execution time)
|
579
|
+
* @param {string} src Script source.
|
580
|
+
* @private
|
581
|
+
*/
|
582
|
+
goog.importScript_ = function(src) {
|
583
|
+
var importScript = goog.global.CLOSURE_IMPORT_SCRIPT ||
|
584
|
+
goog.writeScriptTag_;
|
585
|
+
if (!goog.dependencies_.written[src] && importScript(src)) {
|
586
|
+
goog.dependencies_.written[src] = true;
|
587
|
+
}
|
588
|
+
};
|
589
|
+
|
590
|
+
|
591
|
+
/**
|
592
|
+
* The default implementation of the import function. Writes a script tag to
|
593
|
+
* import the script.
|
594
|
+
*
|
595
|
+
* @param {string} src The script source.
|
596
|
+
* @return {boolean} True if the script was imported, false otherwise.
|
597
|
+
* @private
|
598
|
+
*/
|
599
|
+
goog.writeScriptTag_ = function(src) {
|
600
|
+
if (goog.inHtmlDocument_()) {
|
601
|
+
var doc = goog.global.document;
|
602
|
+
|
603
|
+
// If the user tries to require a new symbol after document load,
|
604
|
+
// something has gone terribly wrong. Doing a document.write would
|
605
|
+
// wipe out the page.
|
606
|
+
if (doc.readyState == 'complete') {
|
607
|
+
// Certain test frameworks load base.js multiple times, which tries
|
608
|
+
// to write deps.js each time. If that happens, just fail silently.
|
609
|
+
// These frameworks wipe the page between each load of base.js, so this
|
610
|
+
// is OK.
|
611
|
+
var isDeps = /\bdeps.js$/.test(src);
|
612
|
+
if (isDeps) {
|
613
|
+
return false;
|
614
|
+
} else {
|
615
|
+
throw Error('Cannot write "' + src + '" after document load');
|
616
|
+
}
|
617
|
+
}
|
618
|
+
|
619
|
+
doc.write(
|
620
|
+
'<script type="text/javascript" src="' + src + '"></' + 'script>');
|
621
|
+
return true;
|
622
|
+
} else {
|
623
|
+
return false;
|
624
|
+
}
|
625
|
+
};
|
626
|
+
|
627
|
+
|
628
|
+
/**
|
629
|
+
* Resolves dependencies based on the dependencies added using addDependency
|
630
|
+
* and calls importScript_ in the correct order.
|
631
|
+
* @private
|
632
|
+
*/
|
633
|
+
goog.writeScripts_ = function() {
|
634
|
+
// The scripts we need to write this time.
|
635
|
+
var scripts = [];
|
636
|
+
var seenScript = {};
|
637
|
+
var deps = goog.dependencies_;
|
638
|
+
|
639
|
+
function visitNode(path) {
|
640
|
+
if (path in deps.written) {
|
641
|
+
return;
|
642
|
+
}
|
643
|
+
|
644
|
+
// We have already visited this one. We can get here if we have cyclic
|
645
|
+
// dependencies.
|
646
|
+
if (path in deps.visited) {
|
647
|
+
if (!(path in seenScript)) {
|
648
|
+
seenScript[path] = true;
|
649
|
+
scripts.push(path);
|
650
|
+
}
|
651
|
+
return;
|
652
|
+
}
|
653
|
+
|
654
|
+
deps.visited[path] = true;
|
655
|
+
|
656
|
+
if (path in deps.requires) {
|
657
|
+
for (var requireName in deps.requires[path]) {
|
658
|
+
// If the required name is defined, we assume that it was already
|
659
|
+
// bootstrapped by other means.
|
660
|
+
if (!goog.isProvided_(requireName)) {
|
661
|
+
if (requireName in deps.nameToPath) {
|
662
|
+
visitNode(deps.nameToPath[requireName]);
|
663
|
+
} else {
|
664
|
+
throw Error('Undefined nameToPath for ' + requireName);
|
665
|
+
}
|
666
|
+
}
|
667
|
+
}
|
668
|
+
}
|
669
|
+
|
670
|
+
if (!(path in seenScript)) {
|
671
|
+
seenScript[path] = true;
|
672
|
+
scripts.push(path);
|
673
|
+
}
|
674
|
+
}
|
675
|
+
|
676
|
+
for (var path in goog.included_) {
|
677
|
+
if (!deps.written[path]) {
|
678
|
+
visitNode(path);
|
679
|
+
}
|
680
|
+
}
|
681
|
+
|
682
|
+
for (var i = 0; i < scripts.length; i++) {
|
683
|
+
if (scripts[i]) {
|
684
|
+
goog.importScript_(goog.basePath + scripts[i]);
|
685
|
+
} else {
|
686
|
+
throw Error('Undefined script input');
|
687
|
+
}
|
688
|
+
}
|
689
|
+
};
|
690
|
+
|
691
|
+
|
692
|
+
/**
|
693
|
+
* Looks at the dependency rules and tries to determine the script file that
|
694
|
+
* fulfills a particular rule.
|
695
|
+
* @param {string} rule In the form goog.namespace.Class or project.script.
|
696
|
+
* @return {?string} Url corresponding to the rule, or null.
|
697
|
+
* @private
|
698
|
+
*/
|
699
|
+
goog.getPathFromDeps_ = function(rule) {
|
700
|
+
if (rule in goog.dependencies_.nameToPath) {
|
701
|
+
return goog.dependencies_.nameToPath[rule];
|
702
|
+
} else {
|
703
|
+
return null;
|
704
|
+
}
|
705
|
+
};
|
706
|
+
|
707
|
+
goog.findBasePath_();
|
708
|
+
|
709
|
+
// Allow projects to manage the deps files themselves.
|
710
|
+
if (!goog.global.CLOSURE_NO_DEPS) {
|
711
|
+
goog.importScript_(goog.basePath + 'deps.js');
|
712
|
+
}
|
713
|
+
}
|
714
|
+
|
715
|
+
|
716
|
+
|
717
|
+
//==============================================================================
|
718
|
+
// Language Enhancements
|
719
|
+
//==============================================================================
|
720
|
+
|
721
|
+
|
722
|
+
/**
|
723
|
+
* This is a "fixed" version of the typeof operator. It differs from the typeof
|
724
|
+
* operator in such a way that null returns 'null' and arrays return 'array'.
|
725
|
+
* @param {*} value The value to get the type of.
|
726
|
+
* @return {string} The name of the type.
|
727
|
+
*/
|
728
|
+
goog.typeOf = function(value) {
|
729
|
+
var s = typeof value;
|
730
|
+
if (s == 'object') {
|
731
|
+
if (value) {
|
732
|
+
// Check these first, so we can avoid calling Object.prototype.toString if
|
733
|
+
// possible.
|
734
|
+
//
|
735
|
+
// IE improperly marshals tyepof across execution contexts, but a
|
736
|
+
// cross-context object will still return false for "instanceof Object".
|
737
|
+
if (value instanceof Array) {
|
738
|
+
return 'array';
|
739
|
+
} else if (value instanceof Object) {
|
740
|
+
return s;
|
741
|
+
}
|
742
|
+
|
743
|
+
// HACK: In order to use an Object prototype method on the arbitrary
|
744
|
+
// value, the compiler requires the value be cast to type Object,
|
745
|
+
// even though the ECMA spec explicitly allows it.
|
746
|
+
var className = Object.prototype.toString.call(
|
747
|
+
/** @type {Object} */ (value));
|
748
|
+
// In Firefox 3.6, attempting to access iframe window objects' length
|
749
|
+
// property throws an NS_ERROR_FAILURE, so we need to special-case it
|
750
|
+
// here.
|
751
|
+
if (className == '[object Window]') {
|
752
|
+
return 'object';
|
753
|
+
}
|
754
|
+
|
755
|
+
// We cannot always use constructor == Array or instanceof Array because
|
756
|
+
// different frames have different Array objects. In IE6, if the iframe
|
757
|
+
// where the array was created is destroyed, the array loses its
|
758
|
+
// prototype. Then dereferencing val.splice here throws an exception, so
|
759
|
+
// we can't use goog.isFunction. Calling typeof directly returns 'unknown'
|
760
|
+
// so that will work. In this case, this function will return false and
|
761
|
+
// most array functions will still work because the array is still
|
762
|
+
// array-like (supports length and []) even though it has lost its
|
763
|
+
// prototype.
|
764
|
+
// Mark Miller noticed that Object.prototype.toString
|
765
|
+
// allows access to the unforgeable [[Class]] property.
|
766
|
+
// 15.2.4.2 Object.prototype.toString ( )
|
767
|
+
// When the toString method is called, the following steps are taken:
|
768
|
+
// 1. Get the [[Class]] property of this object.
|
769
|
+
// 2. Compute a string value by concatenating the three strings
|
770
|
+
// "[object ", Result(1), and "]".
|
771
|
+
// 3. Return Result(2).
|
772
|
+
// and this behavior survives the destruction of the execution context.
|
773
|
+
if ((className == '[object Array]' ||
|
774
|
+
// In IE all non value types are wrapped as objects across window
|
775
|
+
// boundaries (not iframe though) so we have to do object detection
|
776
|
+
// for this edge case.
|
777
|
+
typeof value.length == 'number' &&
|
778
|
+
typeof value.splice != 'undefined' &&
|
779
|
+
typeof value.propertyIsEnumerable != 'undefined' &&
|
780
|
+
!value.propertyIsEnumerable('splice')
|
781
|
+
|
782
|
+
)) {
|
783
|
+
return 'array';
|
784
|
+
}
|
785
|
+
// HACK: There is still an array case that fails.
|
786
|
+
// function ArrayImpostor() {}
|
787
|
+
// ArrayImpostor.prototype = [];
|
788
|
+
// var impostor = new ArrayImpostor;
|
789
|
+
// this can be fixed by getting rid of the fast path
|
790
|
+
// (value instanceof Array) and solely relying on
|
791
|
+
// (value && Object.prototype.toString.vall(value) === '[object Array]')
|
792
|
+
// but that would require many more function calls and is not warranted
|
793
|
+
// unless closure code is receiving objects from untrusted sources.
|
794
|
+
|
795
|
+
// IE in cross-window calls does not correctly marshal the function type
|
796
|
+
// (it appears just as an object) so we cannot use just typeof val ==
|
797
|
+
// 'function'. However, if the object has a call property, it is a
|
798
|
+
// function.
|
799
|
+
if ((className == '[object Function]' ||
|
800
|
+
typeof value.call != 'undefined' &&
|
801
|
+
typeof value.propertyIsEnumerable != 'undefined' &&
|
802
|
+
!value.propertyIsEnumerable('call'))) {
|
803
|
+
return 'function';
|
804
|
+
}
|
805
|
+
|
806
|
+
} else {
|
807
|
+
return 'null';
|
808
|
+
}
|
809
|
+
|
810
|
+
} else if (s == 'function' && typeof value.call == 'undefined') {
|
811
|
+
// In Safari typeof nodeList returns 'function', and on Firefox typeof
|
812
|
+
// behaves similarly for HTML{Applet,Embed,Object}, Elements and RegExps. We
|
813
|
+
// would like to return object for those and we can detect an invalid
|
814
|
+
// function by making sure that the function object has a call method.
|
815
|
+
return 'object';
|
816
|
+
}
|
817
|
+
return s;
|
818
|
+
};
|
819
|
+
|
820
|
+
|
821
|
+
/**
|
822
|
+
* Returns true if the specified value is not undefined.
|
823
|
+
* WARNING: Do not use this to test if an object has a property. Use the in
|
824
|
+
* operator instead. Additionally, this function assumes that the global
|
825
|
+
* undefined variable has not been redefined.
|
826
|
+
* @param {*} val Variable to test.
|
827
|
+
* @return {boolean} Whether variable is defined.
|
828
|
+
*/
|
829
|
+
goog.isDef = function(val) {
|
830
|
+
return val !== undefined;
|
831
|
+
};
|
832
|
+
|
833
|
+
|
834
|
+
/**
|
835
|
+
* Returns true if the specified value is null.
|
836
|
+
* @param {*} val Variable to test.
|
837
|
+
* @return {boolean} Whether variable is null.
|
838
|
+
*/
|
839
|
+
goog.isNull = function(val) {
|
840
|
+
return val === null;
|
841
|
+
};
|
842
|
+
|
843
|
+
|
844
|
+
/**
|
845
|
+
* Returns true if the specified value is defined and not null.
|
846
|
+
* @param {*} val Variable to test.
|
847
|
+
* @return {boolean} Whether variable is defined and not null.
|
848
|
+
*/
|
849
|
+
goog.isDefAndNotNull = function(val) {
|
850
|
+
// Note that undefined == null.
|
851
|
+
return val != null;
|
852
|
+
};
|
853
|
+
|
854
|
+
|
855
|
+
/**
|
856
|
+
* Returns true if the specified value is an array.
|
857
|
+
* @param {*} val Variable to test.
|
858
|
+
* @return {boolean} Whether variable is an array.
|
859
|
+
*/
|
860
|
+
goog.isArray = function(val) {
|
861
|
+
return goog.typeOf(val) == 'array';
|
862
|
+
};
|
863
|
+
|
864
|
+
|
865
|
+
/**
|
866
|
+
* Returns true if the object looks like an array. To qualify as array like
|
867
|
+
* the value needs to be either a NodeList or an object with a Number length
|
868
|
+
* property.
|
869
|
+
* @param {*} val Variable to test.
|
870
|
+
* @return {boolean} Whether variable is an array.
|
871
|
+
*/
|
872
|
+
goog.isArrayLike = function(val) {
|
873
|
+
var type = goog.typeOf(val);
|
874
|
+
return type == 'array' || type == 'object' && typeof val.length == 'number';
|
875
|
+
};
|
876
|
+
|
877
|
+
|
878
|
+
/**
|
879
|
+
* Returns true if the object looks like a Date. To qualify as Date-like the
|
880
|
+
* value needs to be an object and have a getFullYear() function.
|
881
|
+
* @param {*} val Variable to test.
|
882
|
+
* @return {boolean} Whether variable is a like a Date.
|
883
|
+
*/
|
884
|
+
goog.isDateLike = function(val) {
|
885
|
+
return goog.isObject(val) && typeof val.getFullYear == 'function';
|
886
|
+
};
|
887
|
+
|
888
|
+
|
889
|
+
/**
|
890
|
+
* Returns true if the specified value is a string.
|
891
|
+
* @param {*} val Variable to test.
|
892
|
+
* @return {boolean} Whether variable is a string.
|
893
|
+
*/
|
894
|
+
goog.isString = function(val) {
|
895
|
+
return typeof val == 'string';
|
896
|
+
};
|
897
|
+
|
898
|
+
|
899
|
+
/**
|
900
|
+
* Returns true if the specified value is a boolean.
|
901
|
+
* @param {*} val Variable to test.
|
902
|
+
* @return {boolean} Whether variable is boolean.
|
903
|
+
*/
|
904
|
+
goog.isBoolean = function(val) {
|
905
|
+
return typeof val == 'boolean';
|
906
|
+
};
|
907
|
+
|
908
|
+
|
909
|
+
/**
|
910
|
+
* Returns true if the specified value is a number.
|
911
|
+
* @param {*} val Variable to test.
|
912
|
+
* @return {boolean} Whether variable is a number.
|
913
|
+
*/
|
914
|
+
goog.isNumber = function(val) {
|
915
|
+
return typeof val == 'number';
|
916
|
+
};
|
917
|
+
|
918
|
+
|
919
|
+
/**
|
920
|
+
* Returns true if the specified value is a function.
|
921
|
+
* @param {*} val Variable to test.
|
922
|
+
* @return {boolean} Whether variable is a function.
|
923
|
+
*/
|
924
|
+
goog.isFunction = function(val) {
|
925
|
+
return goog.typeOf(val) == 'function';
|
926
|
+
};
|
927
|
+
|
928
|
+
|
929
|
+
/**
|
930
|
+
* Returns true if the specified value is an object. This includes arrays and
|
931
|
+
* functions.
|
932
|
+
* @param {*} val Variable to test.
|
933
|
+
* @return {boolean} Whether variable is an object.
|
934
|
+
*/
|
935
|
+
goog.isObject = function(val) {
|
936
|
+
var type = typeof val;
|
937
|
+
return type == 'object' && val != null || type == 'function';
|
938
|
+
// return Object(val) === val also works, but is slower, especially if val is
|
939
|
+
// not an object.
|
940
|
+
};
|
941
|
+
|
942
|
+
|
943
|
+
/**
|
944
|
+
* Gets a unique ID for an object. This mutates the object so that further calls
|
945
|
+
* with the same object as a parameter returns the same value. The unique ID is
|
946
|
+
* guaranteed to be unique across the current session amongst objects that are
|
947
|
+
* passed into {@code getUid}. There is no guarantee that the ID is unique or
|
948
|
+
* consistent across sessions. It is unsafe to generate unique ID for function
|
949
|
+
* prototypes.
|
950
|
+
*
|
951
|
+
* @param {Object} obj The object to get the unique ID for.
|
952
|
+
* @return {number} The unique ID for the object.
|
953
|
+
*/
|
954
|
+
goog.getUid = function(obj) {
|
955
|
+
// TODO(arv): Make the type stricter, do not accept null.
|
956
|
+
|
957
|
+
// In Opera window.hasOwnProperty exists but always returns false so we avoid
|
958
|
+
// using it. As a consequence the unique ID generated for BaseClass.prototype
|
959
|
+
// and SubClass.prototype will be the same.
|
960
|
+
return obj[goog.UID_PROPERTY_] ||
|
961
|
+
(obj[goog.UID_PROPERTY_] = ++goog.uidCounter_);
|
962
|
+
};
|
963
|
+
|
964
|
+
|
965
|
+
/**
|
966
|
+
* Removes the unique ID from an object. This is useful if the object was
|
967
|
+
* previously mutated using {@code goog.getUid} in which case the mutation is
|
968
|
+
* undone.
|
969
|
+
* @param {Object} obj The object to remove the unique ID field from.
|
970
|
+
*/
|
971
|
+
goog.removeUid = function(obj) {
|
972
|
+
// TODO(arv): Make the type stricter, do not accept null.
|
973
|
+
|
974
|
+
// In IE, DOM nodes are not instances of Object and throw an exception if we
|
975
|
+
// try to delete. Instead we try to use removeAttribute.
|
976
|
+
if ('removeAttribute' in obj) {
|
977
|
+
obj.removeAttribute(goog.UID_PROPERTY_);
|
978
|
+
}
|
979
|
+
/** @preserveTry */
|
980
|
+
try {
|
981
|
+
delete obj[goog.UID_PROPERTY_];
|
982
|
+
} catch (ex) {
|
983
|
+
}
|
984
|
+
};
|
985
|
+
|
986
|
+
|
987
|
+
/**
|
988
|
+
* Name for unique ID property. Initialized in a way to help avoid collisions
|
989
|
+
* with other closure JavaScript on the same page.
|
990
|
+
* @type {string}
|
991
|
+
* @private
|
992
|
+
*/
|
993
|
+
goog.UID_PROPERTY_ = 'closure_uid_' + ((Math.random() * 1e9) >>> 0);
|
994
|
+
|
995
|
+
|
996
|
+
/**
|
997
|
+
* Counter for UID.
|
998
|
+
* @type {number}
|
999
|
+
* @private
|
1000
|
+
*/
|
1001
|
+
goog.uidCounter_ = 0;
|
1002
|
+
|
1003
|
+
|
1004
|
+
/**
|
1005
|
+
* Adds a hash code field to an object. The hash code is unique for the
|
1006
|
+
* given object.
|
1007
|
+
* @param {Object} obj The object to get the hash code for.
|
1008
|
+
* @return {number} The hash code for the object.
|
1009
|
+
* @deprecated Use goog.getUid instead.
|
1010
|
+
*/
|
1011
|
+
goog.getHashCode = goog.getUid;
|
1012
|
+
|
1013
|
+
|
1014
|
+
/**
|
1015
|
+
* Removes the hash code field from an object.
|
1016
|
+
* @param {Object} obj The object to remove the field from.
|
1017
|
+
* @deprecated Use goog.removeUid instead.
|
1018
|
+
*/
|
1019
|
+
goog.removeHashCode = goog.removeUid;
|
1020
|
+
|
1021
|
+
|
1022
|
+
/**
|
1023
|
+
* Clones a value. The input may be an Object, Array, or basic type. Objects and
|
1024
|
+
* arrays will be cloned recursively.
|
1025
|
+
*
|
1026
|
+
* WARNINGS:
|
1027
|
+
* <code>goog.cloneObject</code> does not detect reference loops. Objects that
|
1028
|
+
* refer to themselves will cause infinite recursion.
|
1029
|
+
*
|
1030
|
+
* <code>goog.cloneObject</code> is unaware of unique identifiers, and copies
|
1031
|
+
* UIDs created by <code>getUid</code> into cloned results.
|
1032
|
+
*
|
1033
|
+
* @param {*} obj The value to clone.
|
1034
|
+
* @return {*} A clone of the input value.
|
1035
|
+
* @deprecated goog.cloneObject is unsafe. Prefer the goog.object methods.
|
1036
|
+
*/
|
1037
|
+
goog.cloneObject = function(obj) {
|
1038
|
+
var type = goog.typeOf(obj);
|
1039
|
+
if (type == 'object' || type == 'array') {
|
1040
|
+
if (obj.clone) {
|
1041
|
+
return obj.clone();
|
1042
|
+
}
|
1043
|
+
var clone = type == 'array' ? [] : {};
|
1044
|
+
for (var key in obj) {
|
1045
|
+
clone[key] = goog.cloneObject(obj[key]);
|
1046
|
+
}
|
1047
|
+
return clone;
|
1048
|
+
}
|
1049
|
+
|
1050
|
+
return obj;
|
1051
|
+
};
|
1052
|
+
|
1053
|
+
|
1054
|
+
/**
|
1055
|
+
* A native implementation of goog.bind.
|
1056
|
+
* @param {Function} fn A function to partially apply.
|
1057
|
+
* @param {Object|undefined} selfObj Specifies the object which this should
|
1058
|
+
* point to when the function is run.
|
1059
|
+
* @param {...*} var_args Additional arguments that are partially applied to the
|
1060
|
+
* function.
|
1061
|
+
* @return {!Function} A partially-applied form of the function bind() was
|
1062
|
+
* invoked as a method of.
|
1063
|
+
* @private
|
1064
|
+
* @suppress {deprecated} The compiler thinks that Function.prototype.bind is
|
1065
|
+
* deprecated because some people have declared a pure-JS version.
|
1066
|
+
* Only the pure-JS version is truly deprecated.
|
1067
|
+
*/
|
1068
|
+
goog.bindNative_ = function(fn, selfObj, var_args) {
|
1069
|
+
return /** @type {!Function} */ (fn.call.apply(fn.bind, arguments));
|
1070
|
+
};
|
1071
|
+
|
1072
|
+
|
1073
|
+
/**
|
1074
|
+
* A pure-JS implementation of goog.bind.
|
1075
|
+
* @param {Function} fn A function to partially apply.
|
1076
|
+
* @param {Object|undefined} selfObj Specifies the object which this should
|
1077
|
+
* point to when the function is run.
|
1078
|
+
* @param {...*} var_args Additional arguments that are partially applied to the
|
1079
|
+
* function.
|
1080
|
+
* @return {!Function} A partially-applied form of the function bind() was
|
1081
|
+
* invoked as a method of.
|
1082
|
+
* @private
|
1083
|
+
*/
|
1084
|
+
goog.bindJs_ = function(fn, selfObj, var_args) {
|
1085
|
+
if (!fn) {
|
1086
|
+
throw new Error();
|
1087
|
+
}
|
1088
|
+
|
1089
|
+
if (arguments.length > 2) {
|
1090
|
+
var boundArgs = Array.prototype.slice.call(arguments, 2);
|
1091
|
+
return function() {
|
1092
|
+
// Prepend the bound arguments to the current arguments.
|
1093
|
+
var newArgs = Array.prototype.slice.call(arguments);
|
1094
|
+
Array.prototype.unshift.apply(newArgs, boundArgs);
|
1095
|
+
return fn.apply(selfObj, newArgs);
|
1096
|
+
};
|
1097
|
+
|
1098
|
+
} else {
|
1099
|
+
return function() {
|
1100
|
+
return fn.apply(selfObj, arguments);
|
1101
|
+
};
|
1102
|
+
}
|
1103
|
+
};
|
1104
|
+
|
1105
|
+
|
1106
|
+
/**
|
1107
|
+
* Partially applies this function to a particular 'this object' and zero or
|
1108
|
+
* more arguments. The result is a new function with some arguments of the first
|
1109
|
+
* function pre-filled and the value of this 'pre-specified'.
|
1110
|
+
*
|
1111
|
+
* Remaining arguments specified at call-time are appended to the pre-specified
|
1112
|
+
* ones.
|
1113
|
+
*
|
1114
|
+
* Also see: {@link #partial}.
|
1115
|
+
*
|
1116
|
+
* Usage:
|
1117
|
+
* <pre>var barMethBound = bind(myFunction, myObj, 'arg1', 'arg2');
|
1118
|
+
* barMethBound('arg3', 'arg4');</pre>
|
1119
|
+
*
|
1120
|
+
* @param {?function(this:T, ...)} fn A function to partially apply.
|
1121
|
+
* @param {T} selfObj Specifies the object which this should point to when the
|
1122
|
+
* function is run.
|
1123
|
+
* @param {...*} var_args Additional arguments that are partially applied to the
|
1124
|
+
* function.
|
1125
|
+
* @return {!Function} A partially-applied form of the function bind() was
|
1126
|
+
* invoked as a method of.
|
1127
|
+
* @template T
|
1128
|
+
* @suppress {deprecated} See above.
|
1129
|
+
*/
|
1130
|
+
goog.bind = function(fn, selfObj, var_args) {
|
1131
|
+
// TODO(nicksantos): narrow the type signature.
|
1132
|
+
if (Function.prototype.bind &&
|
1133
|
+
// NOTE(nicksantos): Somebody pulled base.js into the default Chrome
|
1134
|
+
// extension environment. This means that for Chrome extensions, they get
|
1135
|
+
// the implementation of Function.prototype.bind that calls goog.bind
|
1136
|
+
// instead of the native one. Even worse, we don't want to introduce a
|
1137
|
+
// circular dependency between goog.bind and Function.prototype.bind, so
|
1138
|
+
// we have to hack this to make sure it works correctly.
|
1139
|
+
Function.prototype.bind.toString().indexOf('native code') != -1) {
|
1140
|
+
goog.bind = goog.bindNative_;
|
1141
|
+
} else {
|
1142
|
+
goog.bind = goog.bindJs_;
|
1143
|
+
}
|
1144
|
+
return goog.bind.apply(null, arguments);
|
1145
|
+
};
|
1146
|
+
|
1147
|
+
|
1148
|
+
/**
|
1149
|
+
* Like bind(), except that a 'this object' is not required. Useful when the
|
1150
|
+
* target function is already bound.
|
1151
|
+
*
|
1152
|
+
* Usage:
|
1153
|
+
* var g = partial(f, arg1, arg2);
|
1154
|
+
* g(arg3, arg4);
|
1155
|
+
*
|
1156
|
+
* @param {Function} fn A function to partially apply.
|
1157
|
+
* @param {...*} var_args Additional arguments that are partially applied to fn.
|
1158
|
+
* @return {!Function} A partially-applied form of the function bind() was
|
1159
|
+
* invoked as a method of.
|
1160
|
+
*/
|
1161
|
+
goog.partial = function(fn, var_args) {
|
1162
|
+
var args = Array.prototype.slice.call(arguments, 1);
|
1163
|
+
return function() {
|
1164
|
+
// Prepend the bound arguments to the current arguments.
|
1165
|
+
var newArgs = Array.prototype.slice.call(arguments);
|
1166
|
+
newArgs.unshift.apply(newArgs, args);
|
1167
|
+
return fn.apply(this, newArgs);
|
1168
|
+
};
|
1169
|
+
};
|
1170
|
+
|
1171
|
+
|
1172
|
+
/**
|
1173
|
+
* Copies all the members of a source object to a target object. This method
|
1174
|
+
* does not work on all browsers for all objects that contain keys such as
|
1175
|
+
* toString or hasOwnProperty. Use goog.object.extend for this purpose.
|
1176
|
+
* @param {Object} target Target.
|
1177
|
+
* @param {Object} source Source.
|
1178
|
+
*/
|
1179
|
+
goog.mixin = function(target, source) {
|
1180
|
+
for (var x in source) {
|
1181
|
+
target[x] = source[x];
|
1182
|
+
}
|
1183
|
+
|
1184
|
+
// For IE7 or lower, the for-in-loop does not contain any properties that are
|
1185
|
+
// not enumerable on the prototype object (for example, isPrototypeOf from
|
1186
|
+
// Object.prototype) but also it will not include 'replace' on objects that
|
1187
|
+
// extend String and change 'replace' (not that it is common for anyone to
|
1188
|
+
// extend anything except Object).
|
1189
|
+
};
|
1190
|
+
|
1191
|
+
|
1192
|
+
/**
|
1193
|
+
* @return {number} An integer value representing the number of milliseconds
|
1194
|
+
* between midnight, January 1, 1970 and the current time.
|
1195
|
+
*/
|
1196
|
+
goog.now = (goog.TRUSTED_SITE && Date.now) || (function() {
|
1197
|
+
// Unary plus operator converts its operand to a number which in the case of
|
1198
|
+
// a date is done by calling getTime().
|
1199
|
+
return +new Date();
|
1200
|
+
});
|
1201
|
+
|
1202
|
+
|
1203
|
+
/**
|
1204
|
+
* Evals JavaScript in the global scope. In IE this uses execScript, other
|
1205
|
+
* browsers use goog.global.eval. If goog.global.eval does not evaluate in the
|
1206
|
+
* global scope (for example, in Safari), appends a script tag instead.
|
1207
|
+
* Throws an exception if neither execScript or eval is defined.
|
1208
|
+
* @param {string} script JavaScript string.
|
1209
|
+
*/
|
1210
|
+
goog.globalEval = function(script) {
|
1211
|
+
if (goog.global.execScript) {
|
1212
|
+
goog.global.execScript(script, 'JavaScript');
|
1213
|
+
} else if (goog.global.eval) {
|
1214
|
+
// Test to see if eval works
|
1215
|
+
if (goog.evalWorksForGlobals_ == null) {
|
1216
|
+
goog.global.eval('var _et_ = 1;');
|
1217
|
+
if (typeof goog.global['_et_'] != 'undefined') {
|
1218
|
+
delete goog.global['_et_'];
|
1219
|
+
goog.evalWorksForGlobals_ = true;
|
1220
|
+
} else {
|
1221
|
+
goog.evalWorksForGlobals_ = false;
|
1222
|
+
}
|
1223
|
+
}
|
1224
|
+
|
1225
|
+
if (goog.evalWorksForGlobals_) {
|
1226
|
+
goog.global.eval(script);
|
1227
|
+
} else {
|
1228
|
+
var doc = goog.global.document;
|
1229
|
+
var scriptElt = doc.createElement('script');
|
1230
|
+
scriptElt.type = 'text/javascript';
|
1231
|
+
scriptElt.defer = false;
|
1232
|
+
// Note(user): can't use .innerHTML since "t('<test>')" will fail and
|
1233
|
+
// .text doesn't work in Safari 2. Therefore we append a text node.
|
1234
|
+
scriptElt.appendChild(doc.createTextNode(script));
|
1235
|
+
doc.body.appendChild(scriptElt);
|
1236
|
+
doc.body.removeChild(scriptElt);
|
1237
|
+
}
|
1238
|
+
} else {
|
1239
|
+
throw Error('goog.globalEval not available');
|
1240
|
+
}
|
1241
|
+
};
|
1242
|
+
|
1243
|
+
|
1244
|
+
/**
|
1245
|
+
* Indicates whether or not we can call 'eval' directly to eval code in the
|
1246
|
+
* global scope. Set to a Boolean by the first call to goog.globalEval (which
|
1247
|
+
* empirically tests whether eval works for globals). @see goog.globalEval
|
1248
|
+
* @type {?boolean}
|
1249
|
+
* @private
|
1250
|
+
*/
|
1251
|
+
goog.evalWorksForGlobals_ = null;
|
1252
|
+
|
1253
|
+
|
1254
|
+
/**
|
1255
|
+
* Optional map of CSS class names to obfuscated names used with
|
1256
|
+
* goog.getCssName().
|
1257
|
+
* @type {Object|undefined}
|
1258
|
+
* @private
|
1259
|
+
* @see goog.setCssNameMapping
|
1260
|
+
*/
|
1261
|
+
goog.cssNameMapping_;
|
1262
|
+
|
1263
|
+
|
1264
|
+
/**
|
1265
|
+
* Optional obfuscation style for CSS class names. Should be set to either
|
1266
|
+
* 'BY_WHOLE' or 'BY_PART' if defined.
|
1267
|
+
* @type {string|undefined}
|
1268
|
+
* @private
|
1269
|
+
* @see goog.setCssNameMapping
|
1270
|
+
*/
|
1271
|
+
goog.cssNameMappingStyle_;
|
1272
|
+
|
1273
|
+
|
1274
|
+
/**
|
1275
|
+
* Handles strings that are intended to be used as CSS class names.
|
1276
|
+
*
|
1277
|
+
* This function works in tandem with @see goog.setCssNameMapping.
|
1278
|
+
*
|
1279
|
+
* Without any mapping set, the arguments are simple joined with a hyphen and
|
1280
|
+
* passed through unaltered.
|
1281
|
+
*
|
1282
|
+
* When there is a mapping, there are two possible styles in which these
|
1283
|
+
* mappings are used. In the BY_PART style, each part (i.e. in between hyphens)
|
1284
|
+
* of the passed in css name is rewritten according to the map. In the BY_WHOLE
|
1285
|
+
* style, the full css name is looked up in the map directly. If a rewrite is
|
1286
|
+
* not specified by the map, the compiler will output a warning.
|
1287
|
+
*
|
1288
|
+
* When the mapping is passed to the compiler, it will replace calls to
|
1289
|
+
* goog.getCssName with the strings from the mapping, e.g.
|
1290
|
+
* var x = goog.getCssName('foo');
|
1291
|
+
* var y = goog.getCssName(this.baseClass, 'active');
|
1292
|
+
* becomes:
|
1293
|
+
* var x= 'foo';
|
1294
|
+
* var y = this.baseClass + '-active';
|
1295
|
+
*
|
1296
|
+
* If one argument is passed it will be processed, if two are passed only the
|
1297
|
+
* modifier will be processed, as it is assumed the first argument was generated
|
1298
|
+
* as a result of calling goog.getCssName.
|
1299
|
+
*
|
1300
|
+
* @param {string} className The class name.
|
1301
|
+
* @param {string=} opt_modifier A modifier to be appended to the class name.
|
1302
|
+
* @return {string} The class name or the concatenation of the class name and
|
1303
|
+
* the modifier.
|
1304
|
+
*/
|
1305
|
+
goog.getCssName = function(className, opt_modifier) {
|
1306
|
+
var getMapping = function(cssName) {
|
1307
|
+
return goog.cssNameMapping_[cssName] || cssName;
|
1308
|
+
};
|
1309
|
+
|
1310
|
+
var renameByParts = function(cssName) {
|
1311
|
+
// Remap all the parts individually.
|
1312
|
+
var parts = cssName.split('-');
|
1313
|
+
var mapped = [];
|
1314
|
+
for (var i = 0; i < parts.length; i++) {
|
1315
|
+
mapped.push(getMapping(parts[i]));
|
1316
|
+
}
|
1317
|
+
return mapped.join('-');
|
1318
|
+
};
|
1319
|
+
|
1320
|
+
var rename;
|
1321
|
+
if (goog.cssNameMapping_) {
|
1322
|
+
rename = goog.cssNameMappingStyle_ == 'BY_WHOLE' ?
|
1323
|
+
getMapping : renameByParts;
|
1324
|
+
} else {
|
1325
|
+
rename = function(a) {
|
1326
|
+
return a;
|
1327
|
+
};
|
1328
|
+
}
|
1329
|
+
|
1330
|
+
if (opt_modifier) {
|
1331
|
+
return className + '-' + rename(opt_modifier);
|
1332
|
+
} else {
|
1333
|
+
return rename(className);
|
1334
|
+
}
|
1335
|
+
};
|
1336
|
+
|
1337
|
+
|
1338
|
+
/**
|
1339
|
+
* Sets the map to check when returning a value from goog.getCssName(). Example:
|
1340
|
+
* <pre>
|
1341
|
+
* goog.setCssNameMapping({
|
1342
|
+
* "goog": "a",
|
1343
|
+
* "disabled": "b",
|
1344
|
+
* });
|
1345
|
+
*
|
1346
|
+
* var x = goog.getCssName('goog');
|
1347
|
+
* // The following evaluates to: "a a-b".
|
1348
|
+
* goog.getCssName('goog') + ' ' + goog.getCssName(x, 'disabled')
|
1349
|
+
* </pre>
|
1350
|
+
* When declared as a map of string literals to string literals, the JSCompiler
|
1351
|
+
* will replace all calls to goog.getCssName() using the supplied map if the
|
1352
|
+
* --closure_pass flag is set.
|
1353
|
+
*
|
1354
|
+
* @param {!Object} mapping A map of strings to strings where keys are possible
|
1355
|
+
* arguments to goog.getCssName() and values are the corresponding values
|
1356
|
+
* that should be returned.
|
1357
|
+
* @param {string=} opt_style The style of css name mapping. There are two valid
|
1358
|
+
* options: 'BY_PART', and 'BY_WHOLE'.
|
1359
|
+
* @see goog.getCssName for a description.
|
1360
|
+
*/
|
1361
|
+
goog.setCssNameMapping = function(mapping, opt_style) {
|
1362
|
+
goog.cssNameMapping_ = mapping;
|
1363
|
+
goog.cssNameMappingStyle_ = opt_style;
|
1364
|
+
};
|
1365
|
+
|
1366
|
+
|
1367
|
+
/**
|
1368
|
+
* To use CSS renaming in compiled mode, one of the input files should have a
|
1369
|
+
* call to goog.setCssNameMapping() with an object literal that the JSCompiler
|
1370
|
+
* can extract and use to replace all calls to goog.getCssName(). In uncompiled
|
1371
|
+
* mode, JavaScript code should be loaded before this base.js file that declares
|
1372
|
+
* a global variable, CLOSURE_CSS_NAME_MAPPING, which is used below. This is
|
1373
|
+
* to ensure that the mapping is loaded before any calls to goog.getCssName()
|
1374
|
+
* are made in uncompiled mode.
|
1375
|
+
*
|
1376
|
+
* A hook for overriding the CSS name mapping.
|
1377
|
+
* @type {Object|undefined}
|
1378
|
+
*/
|
1379
|
+
goog.global.CLOSURE_CSS_NAME_MAPPING;
|
1380
|
+
|
1381
|
+
|
1382
|
+
if (!COMPILED && goog.global.CLOSURE_CSS_NAME_MAPPING) {
|
1383
|
+
// This does not call goog.setCssNameMapping() because the JSCompiler
|
1384
|
+
// requires that goog.setCssNameMapping() be called with an object literal.
|
1385
|
+
goog.cssNameMapping_ = goog.global.CLOSURE_CSS_NAME_MAPPING;
|
1386
|
+
}
|
1387
|
+
|
1388
|
+
|
1389
|
+
/**
|
1390
|
+
* Gets a localized message.
|
1391
|
+
*
|
1392
|
+
* This function is a compiler primitive. If you give the compiler a localized
|
1393
|
+
* message bundle, it will replace the string at compile-time with a localized
|
1394
|
+
* version, and expand goog.getMsg call to a concatenated string.
|
1395
|
+
*
|
1396
|
+
* Messages must be initialized in the form:
|
1397
|
+
* <code>
|
1398
|
+
* var MSG_NAME = goog.getMsg('Hello {$placeholder}', {'placeholder': 'world'});
|
1399
|
+
* </code>
|
1400
|
+
*
|
1401
|
+
* @param {string} str Translatable string, places holders in the form {$foo}.
|
1402
|
+
* @param {Object=} opt_values Map of place holder name to value.
|
1403
|
+
* @return {string} message with placeholders filled.
|
1404
|
+
*/
|
1405
|
+
goog.getMsg = function(str, opt_values) {
|
1406
|
+
var values = opt_values || {};
|
1407
|
+
for (var key in values) {
|
1408
|
+
var value = ('' + values[key]).replace(/\$/g, '$$$$');
|
1409
|
+
str = str.replace(new RegExp('\\{\\$' + key + '\\}', 'gi'), value);
|
1410
|
+
}
|
1411
|
+
return str;
|
1412
|
+
};
|
1413
|
+
|
1414
|
+
|
1415
|
+
/**
|
1416
|
+
* Gets a localized message. If the message does not have a translation, gives a
|
1417
|
+
* fallback message.
|
1418
|
+
*
|
1419
|
+
* This is useful when introducing a new message that has not yet been
|
1420
|
+
* translated into all languages.
|
1421
|
+
*
|
1422
|
+
* This function is a compiler primtive. Must be used in the form:
|
1423
|
+
* <code>var x = goog.getMsgWithFallback(MSG_A, MSG_B);</code>
|
1424
|
+
* where MSG_A and MSG_B were initialized with goog.getMsg.
|
1425
|
+
*
|
1426
|
+
* @param {string} a The preferred message.
|
1427
|
+
* @param {string} b The fallback message.
|
1428
|
+
* @return {string} The best translated message.
|
1429
|
+
*/
|
1430
|
+
goog.getMsgWithFallback = function(a, b) {
|
1431
|
+
return a;
|
1432
|
+
};
|
1433
|
+
|
1434
|
+
|
1435
|
+
/**
|
1436
|
+
* Exposes an unobfuscated global namespace path for the given object.
|
1437
|
+
* Note that fields of the exported object *will* be obfuscated, unless they are
|
1438
|
+
* exported in turn via this function or goog.exportProperty.
|
1439
|
+
*
|
1440
|
+
* Also handy for making public items that are defined in anonymous closures.
|
1441
|
+
*
|
1442
|
+
* ex. goog.exportSymbol('public.path.Foo', Foo);
|
1443
|
+
*
|
1444
|
+
* ex. goog.exportSymbol('public.path.Foo.staticFunction', Foo.staticFunction);
|
1445
|
+
* public.path.Foo.staticFunction();
|
1446
|
+
*
|
1447
|
+
* ex. goog.exportSymbol('public.path.Foo.prototype.myMethod',
|
1448
|
+
* Foo.prototype.myMethod);
|
1449
|
+
* new public.path.Foo().myMethod();
|
1450
|
+
*
|
1451
|
+
* @param {string} publicPath Unobfuscated name to export.
|
1452
|
+
* @param {*} object Object the name should point to.
|
1453
|
+
* @param {Object=} opt_objectToExportTo The object to add the path to; default
|
1454
|
+
* is goog.global.
|
1455
|
+
*/
|
1456
|
+
goog.exportSymbol = function(publicPath, object, opt_objectToExportTo) {
|
1457
|
+
goog.exportPath_(publicPath, object, opt_objectToExportTo);
|
1458
|
+
};
|
1459
|
+
|
1460
|
+
|
1461
|
+
/**
|
1462
|
+
* Exports a property unobfuscated into the object's namespace.
|
1463
|
+
* ex. goog.exportProperty(Foo, 'staticFunction', Foo.staticFunction);
|
1464
|
+
* ex. goog.exportProperty(Foo.prototype, 'myMethod', Foo.prototype.myMethod);
|
1465
|
+
* @param {Object} object Object whose static property is being exported.
|
1466
|
+
* @param {string} publicName Unobfuscated name to export.
|
1467
|
+
* @param {*} symbol Object the name should point to.
|
1468
|
+
*/
|
1469
|
+
goog.exportProperty = function(object, publicName, symbol) {
|
1470
|
+
object[publicName] = symbol;
|
1471
|
+
};
|
1472
|
+
|
1473
|
+
|
1474
|
+
/**
|
1475
|
+
* Inherit the prototype methods from one constructor into another.
|
1476
|
+
*
|
1477
|
+
* Usage:
|
1478
|
+
* <pre>
|
1479
|
+
* function ParentClass(a, b) { }
|
1480
|
+
* ParentClass.prototype.foo = function(a) { }
|
1481
|
+
*
|
1482
|
+
* function ChildClass(a, b, c) {
|
1483
|
+
* goog.base(this, a, b);
|
1484
|
+
* }
|
1485
|
+
* goog.inherits(ChildClass, ParentClass);
|
1486
|
+
*
|
1487
|
+
* var child = new ChildClass('a', 'b', 'see');
|
1488
|
+
* child.foo(); // This works.
|
1489
|
+
* </pre>
|
1490
|
+
*
|
1491
|
+
* In addition, a superclass' implementation of a method can be invoked as
|
1492
|
+
* follows:
|
1493
|
+
*
|
1494
|
+
* <pre>
|
1495
|
+
* ChildClass.prototype.foo = function(a) {
|
1496
|
+
* ChildClass.superClass_.foo.call(this, a);
|
1497
|
+
* // Other code here.
|
1498
|
+
* };
|
1499
|
+
* </pre>
|
1500
|
+
*
|
1501
|
+
* @param {Function} childCtor Child class.
|
1502
|
+
* @param {Function} parentCtor Parent class.
|
1503
|
+
*/
|
1504
|
+
goog.inherits = function(childCtor, parentCtor) {
|
1505
|
+
/** @constructor */
|
1506
|
+
function tempCtor() {};
|
1507
|
+
tempCtor.prototype = parentCtor.prototype;
|
1508
|
+
childCtor.superClass_ = parentCtor.prototype;
|
1509
|
+
childCtor.prototype = new tempCtor();
|
1510
|
+
/** @override */
|
1511
|
+
childCtor.prototype.constructor = childCtor;
|
1512
|
+
};
|
1513
|
+
|
1514
|
+
|
1515
|
+
/**
|
1516
|
+
* Call up to the superclass.
|
1517
|
+
*
|
1518
|
+
* If this is called from a constructor, then this calls the superclass
|
1519
|
+
* contsructor with arguments 1-N.
|
1520
|
+
*
|
1521
|
+
* If this is called from a prototype method, then you must pass the name of the
|
1522
|
+
* method as the second argument to this function. If you do not, you will get a
|
1523
|
+
* runtime error. This calls the superclass' method with arguments 2-N.
|
1524
|
+
*
|
1525
|
+
* This function only works if you use goog.inherits to express inheritance
|
1526
|
+
* relationships between your classes.
|
1527
|
+
*
|
1528
|
+
* This function is a compiler primitive. At compile-time, the compiler will do
|
1529
|
+
* macro expansion to remove a lot of the extra overhead that this function
|
1530
|
+
* introduces. The compiler will also enforce a lot of the assumptions that this
|
1531
|
+
* function makes, and treat it as a compiler error if you break them.
|
1532
|
+
*
|
1533
|
+
* @param {!Object} me Should always be "this".
|
1534
|
+
* @param {*=} opt_methodName The method name if calling a super method.
|
1535
|
+
* @param {...*} var_args The rest of the arguments.
|
1536
|
+
* @return {*} The return value of the superclass method.
|
1537
|
+
*/
|
1538
|
+
goog.base = function(me, opt_methodName, var_args) {
|
1539
|
+
var caller = arguments.callee.caller;
|
1540
|
+
|
1541
|
+
if (goog.DEBUG) {
|
1542
|
+
if (!caller) {
|
1543
|
+
throw Error('arguments.caller not defined. goog.base() expects not ' +
|
1544
|
+
'to be running in strict mode. See ' +
|
1545
|
+
'http://www.ecma-international.org/ecma-262/5.1/#sec-C');
|
1546
|
+
}
|
1547
|
+
}
|
1548
|
+
|
1549
|
+
if (caller.superClass_) {
|
1550
|
+
// This is a constructor. Call the superclass constructor.
|
1551
|
+
return caller.superClass_.constructor.apply(
|
1552
|
+
me, Array.prototype.slice.call(arguments, 1));
|
1553
|
+
}
|
1554
|
+
|
1555
|
+
var args = Array.prototype.slice.call(arguments, 2);
|
1556
|
+
var foundCaller = false;
|
1557
|
+
for (var ctor = me.constructor;
|
1558
|
+
ctor; ctor = ctor.superClass_ && ctor.superClass_.constructor) {
|
1559
|
+
if (ctor.prototype[opt_methodName] === caller) {
|
1560
|
+
foundCaller = true;
|
1561
|
+
} else if (foundCaller) {
|
1562
|
+
return ctor.prototype[opt_methodName].apply(me, args);
|
1563
|
+
}
|
1564
|
+
}
|
1565
|
+
|
1566
|
+
// If we did not find the caller in the prototype chain, then one of two
|
1567
|
+
// things happened:
|
1568
|
+
// 1) The caller is an instance method.
|
1569
|
+
// 2) This method was not called by the right caller.
|
1570
|
+
if (me[opt_methodName] === caller) {
|
1571
|
+
return me.constructor.prototype[opt_methodName].apply(me, args);
|
1572
|
+
} else {
|
1573
|
+
throw Error(
|
1574
|
+
'goog.base called from a method of one name ' +
|
1575
|
+
'to a method of a different name');
|
1576
|
+
}
|
1577
|
+
};
|
1578
|
+
|
1579
|
+
|
1580
|
+
/**
|
1581
|
+
* Allow for aliasing within scope functions. This function exists for
|
1582
|
+
* uncompiled code - in compiled code the calls will be inlined and the aliases
|
1583
|
+
* applied. In uncompiled code the function is simply run since the aliases as
|
1584
|
+
* written are valid JavaScript.
|
1585
|
+
* @param {function()} fn Function to call. This function can contain aliases
|
1586
|
+
* to namespaces (e.g. "var dom = goog.dom") or classes
|
1587
|
+
* (e.g. "var Timer = goog.Timer").
|
1588
|
+
*/
|
1589
|
+
goog.scope = function(fn) {
|
1590
|
+
fn.call(goog.global);
|
1591
|
+
};
|
1592
|
+
|
1593
|
+
|