lady_josephine 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (304) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +32 -0
  4. data/app/assets/fonts/lady_josephine/icons/icons.eot +0 -0
  5. data/app/assets/fonts/lady_josephine/icons/icons.svg +215 -0
  6. data/app/assets/fonts/lady_josephine/icons/icons.ttf +0 -0
  7. data/app/assets/fonts/lady_josephine/icons/icons.woff +0 -0
  8. data/app/assets/javascripts/lady_josephine/blocks/facebook.js +25 -0
  9. data/app/assets/javascripts/lady_josephine/blocks/instagram.js +22 -0
  10. data/app/assets/javascripts/lady_josephine/blocks/soundcloud.js +24 -0
  11. data/app/assets/javascripts/lady_josephine/blocks/twitter.js +25 -0
  12. data/app/assets/javascripts/lady_josephine/blocks/vimeo.js +55 -0
  13. data/app/assets/javascripts/lady_josephine/blocks/youtube.js +64 -0
  14. data/app/assets/javascripts/lady_josephine/editor.js +40 -0
  15. data/app/assets/javascripts/lady_josephine/lady_josephine.js +4 -0
  16. data/app/assets/javascripts/lady_josephine/lady_josephine_view.js +6 -0
  17. data/app/assets/stylesheets/lady_josephine/content.sass +33 -0
  18. data/app/assets/stylesheets/lady_josephine/icons.sass +175 -0
  19. data/app/assets/stylesheets/lady_josephine/lady_josephine.sass +6 -0
  20. data/app/assets/stylesheets/lady_josephine/sir_trevor.sass +619 -0
  21. data/app/assets/stylesheets/lady_josephine/vars.sass +36 -0
  22. data/app/controllers/lady_josephine/application_controller.rb +4 -0
  23. data/app/controllers/lady_josephine/editor_controller.rb +40 -0
  24. data/app/controllers/lady_josephine/images_controller.rb +26 -0
  25. data/app/helpers/lady_josephine/helper.rb +25 -0
  26. data/app/helpers/lady_josephine/sir_trevor_helper.rb +172 -0
  27. data/app/models/lady_josephine/concerns/model.rb +29 -0
  28. data/app/models/lady_josephine/concerns/pingable.rb +28 -0
  29. data/app/models/lady_josephine/concerns/server_uuid.rb +24 -0
  30. data/app/models/lady_josephine/concerns/sir_trevor_images.rb +38 -0
  31. data/app/models/lady_josephine/image.rb +41 -0
  32. data/app/uploader/lady_josephine/base_uploader.rb +47 -0
  33. data/app/uploader/lady_josephine/image_uploader.rb +149 -0
  34. data/app/views/lady_josephine/blocks/_audio_block.haml +2 -0
  35. data/app/views/lady_josephine/blocks/_definition_block.haml +4 -0
  36. data/app/views/lady_josephine/blocks/_divider_block.haml +2 -0
  37. data/app/views/lady_josephine/blocks/_extended_image_block.haml +63 -0
  38. data/app/views/lady_josephine/blocks/_extended_quote_block.haml +5 -0
  39. data/app/views/lady_josephine/blocks/_extended_tweet_block.haml +2 -0
  40. data/app/views/lady_josephine/blocks/_facebook_post_block.haml +2 -0
  41. data/app/views/lady_josephine/blocks/_heading_block.haml +2 -0
  42. data/app/views/lady_josephine/blocks/_html_block.haml +1 -0
  43. data/app/views/lady_josephine/blocks/_instagram_block.haml +2 -0
  44. data/app/views/lady_josephine/blocks/_list_block.haml +3 -0
  45. data/app/views/lady_josephine/blocks/_quote_block.haml +5 -0
  46. data/app/views/lady_josephine/blocks/_text_block.html.haml +2 -0
  47. data/app/views/lady_josephine/blocks/_video_block.haml +9 -0
  48. data/config/routes.rb +9 -0
  49. data/db/migrate/20160222151500_lady_josephine_image.rb +18 -0
  50. data/lib/generators/lady_josephine_migration/USAGE +9 -0
  51. data/lib/generators/lady_josephine_migration/lady_josephine_migration_generator.rb +17 -0
  52. data/lib/generators/lady_josephine_migration/templates/migration.rb +9 -0
  53. data/lib/lady_josephine.rb +18 -0
  54. data/lib/lady_josephine/engine.rb +18 -0
  55. data/lib/lady_josephine/redcarpet/custom_markdown_formatter.rb +63 -0
  56. data/lib/lady_josephine/renderer/sir_trevor_renderer.rb +16 -0
  57. data/lib/lady_josephine/version.rb +3 -0
  58. data/lib/lady_josephine/whitelist.rb +26 -0
  59. data/lib/tasks/lady_josephine_tasks.rake +4 -0
  60. data/spec/controllers/lady_josephine/editor_controller_spec.rb +58 -0
  61. data/spec/dummy/README.rdoc +28 -0
  62. data/spec/dummy/Rakefile +6 -0
  63. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  64. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  65. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  66. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  67. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  68. data/spec/dummy/bin/bundle +3 -0
  69. data/spec/dummy/bin/rails +4 -0
  70. data/spec/dummy/bin/rake +4 -0
  71. data/spec/dummy/bin/setup +29 -0
  72. data/spec/dummy/config.ru +4 -0
  73. data/spec/dummy/config/application.rb +26 -0
  74. data/spec/dummy/config/boot.rb +5 -0
  75. data/spec/dummy/config/database.yml +25 -0
  76. data/spec/dummy/config/environment.rb +5 -0
  77. data/spec/dummy/config/environments/development.rb +41 -0
  78. data/spec/dummy/config/environments/production.rb +79 -0
  79. data/spec/dummy/config/environments/test.rb +42 -0
  80. data/spec/dummy/config/initializers/assets.rb +11 -0
  81. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  82. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  83. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  84. data/spec/dummy/config/initializers/inflections.rb +16 -0
  85. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  86. data/spec/dummy/config/initializers/session_store.rb +3 -0
  87. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  88. data/spec/dummy/config/locales/en.yml +23 -0
  89. data/spec/dummy/config/routes.rb +4 -0
  90. data/spec/dummy/config/secrets.yml +22 -0
  91. data/spec/dummy/db/development.sqlite3 +0 -0
  92. data/spec/dummy/db/schema.rb +16 -0
  93. data/spec/dummy/db/test.sqlite3 +0 -0
  94. data/spec/dummy/log/bla +0 -0
  95. data/spec/dummy/public/404.html +67 -0
  96. data/spec/dummy/public/422.html +67 -0
  97. data/spec/dummy/public/500.html +66 -0
  98. data/spec/dummy/public/favicon.ico +0 -0
  99. data/spec/spec_helper.rb +17 -0
  100. data/vendor/assets/components/Eventable/README.md +12 -0
  101. data/vendor/assets/components/Eventable/bower.json +10 -0
  102. data/vendor/assets/components/Eventable/component.json +11 -0
  103. data/vendor/assets/components/Eventable/eventable.js +207 -0
  104. data/vendor/assets/components/Eventable/package.json +15 -0
  105. data/vendor/assets/components/jquery-autosize/bower.json +30 -0
  106. data/vendor/assets/components/jquery-autosize/demo.html +36 -0
  107. data/vendor/assets/components/jquery-autosize/jquery.autosize.js +273 -0
  108. data/vendor/assets/components/jquery-autosize/jquery.autosize.min.js +6 -0
  109. data/vendor/assets/components/jquery-autosize/package.json +32 -0
  110. data/vendor/assets/components/jquery-autosize/readme.md +216 -0
  111. data/vendor/assets/components/jquery/AUTHORS.txt +163 -0
  112. data/vendor/assets/components/jquery/CONTRIBUTING.md +216 -0
  113. data/vendor/assets/components/jquery/Gruntfile.js +496 -0
  114. data/vendor/assets/components/jquery/MIT-LICENSE.txt +21 -0
  115. data/vendor/assets/components/jquery/README.md +415 -0
  116. data/vendor/assets/components/jquery/build/release-notes.js +59 -0
  117. data/vendor/assets/components/jquery/build/release.js +246 -0
  118. data/vendor/assets/components/jquery/component.json +13 -0
  119. data/vendor/assets/components/jquery/composer.json +35 -0
  120. data/vendor/assets/components/jquery/jquery-migrate.js +496 -0
  121. data/vendor/assets/components/jquery/jquery-migrate.min.js +3 -0
  122. data/vendor/assets/components/jquery/jquery.js +9597 -0
  123. data/vendor/assets/components/jquery/jquery.min.js +5 -0
  124. data/vendor/assets/components/jquery/jquery.min.map +1 -0
  125. data/vendor/assets/components/jquery/package.json +39 -0
  126. data/vendor/assets/components/jquery/speed/benchmark.js +15 -0
  127. data/vendor/assets/components/jquery/speed/benchmarker.css +65 -0
  128. data/vendor/assets/components/jquery/speed/benchmarker.js +181 -0
  129. data/vendor/assets/components/jquery/speed/closest.html +39 -0
  130. data/vendor/assets/components/jquery/speed/css.html +82 -0
  131. data/vendor/assets/components/jquery/speed/event.html +58 -0
  132. data/vendor/assets/components/jquery/speed/filter.html +183 -0
  133. data/vendor/assets/components/jquery/speed/find.html +179 -0
  134. data/vendor/assets/components/jquery/speed/index.html +72 -0
  135. data/vendor/assets/components/jquery/speed/jquery-basis.js +6238 -0
  136. data/vendor/assets/components/jquery/speed/slice.vs.concat.html +47 -0
  137. data/vendor/assets/components/jquery/src/ajax.js +851 -0
  138. data/vendor/assets/components/jquery/src/ajax/jsonp.js +80 -0
  139. data/vendor/assets/components/jquery/src/ajax/script.js +86 -0
  140. data/vendor/assets/components/jquery/src/ajax/xhr.js +207 -0
  141. data/vendor/assets/components/jquery/src/attributes.js +661 -0
  142. data/vendor/assets/components/jquery/src/callbacks.js +196 -0
  143. data/vendor/assets/components/jquery/src/core.js +949 -0
  144. data/vendor/assets/components/jquery/src/css.js +679 -0
  145. data/vendor/assets/components/jquery/src/data.js +340 -0
  146. data/vendor/assets/components/jquery/src/deferred.js +141 -0
  147. data/vendor/assets/components/jquery/src/deprecated.js +4 -0
  148. data/vendor/assets/components/jquery/src/dimensions.js +41 -0
  149. data/vendor/assets/components/jquery/src/effects.js +730 -0
  150. data/vendor/assets/components/jquery/src/event-alias.js +15 -0
  151. data/vendor/assets/components/jquery/src/event.js +991 -0
  152. data/vendor/assets/components/jquery/src/exports.js +18 -0
  153. data/vendor/assets/components/jquery/src/intro.js +20 -0
  154. data/vendor/assets/components/jquery/src/manipulation.js +796 -0
  155. data/vendor/assets/components/jquery/src/offset.js +169 -0
  156. data/vendor/assets/components/jquery/src/outro.js +2 -0
  157. data/vendor/assets/components/jquery/src/queue.js +147 -0
  158. data/vendor/assets/components/jquery/src/serialize.js +99 -0
  159. data/vendor/assets/components/jquery/src/sizzle-jquery.js +9 -0
  160. data/vendor/assets/components/jquery/src/support.js +241 -0
  161. data/vendor/assets/components/jquery/src/traversing.js +275 -0
  162. data/vendor/assets/components/jquery/test/csp.php +16 -0
  163. data/vendor/assets/components/jquery/test/data/1x1.jpg +0 -0
  164. data/vendor/assets/components/jquery/test/data/ajax/unreleasedXHR.html +25 -0
  165. data/vendor/assets/components/jquery/test/data/atom+xml.php +4 -0
  166. data/vendor/assets/components/jquery/test/data/badcall.js +1 -0
  167. data/vendor/assets/components/jquery/test/data/badjson.js +1 -0
  168. data/vendor/assets/components/jquery/test/data/cleanScript.html +10 -0
  169. data/vendor/assets/components/jquery/test/data/core/cc_on.html +22 -0
  170. data/vendor/assets/components/jquery/test/data/dashboard.xml +11 -0
  171. data/vendor/assets/components/jquery/test/data/dimensions/documentLarge.html +17 -0
  172. data/vendor/assets/components/jquery/test/data/dimensions/documentSmall.html +21 -0
  173. data/vendor/assets/components/jquery/test/data/echoData.php +1 -0
  174. data/vendor/assets/components/jquery/test/data/echoQuery.php +1 -0
  175. data/vendor/assets/components/jquery/test/data/errorWithText.php +5 -0
  176. data/vendor/assets/components/jquery/test/data/etag.php +21 -0
  177. data/vendor/assets/components/jquery/test/data/evalScript.php +1 -0
  178. data/vendor/assets/components/jquery/test/data/event/longLoadScript.php +4 -0
  179. data/vendor/assets/components/jquery/test/data/event/promiseReady.html +17 -0
  180. data/vendor/assets/components/jquery/test/data/event/syncReady.html +23 -0
  181. data/vendor/assets/components/jquery/test/data/headers.php +18 -0
  182. data/vendor/assets/components/jquery/test/data/if_modified_since.php +20 -0
  183. data/vendor/assets/components/jquery/test/data/iframe.html +8 -0
  184. data/vendor/assets/components/jquery/test/data/jquery-1.8.2.ajax_xhr.min.js +2 -0
  185. data/vendor/assets/components/jquery/test/data/json.php +13 -0
  186. data/vendor/assets/components/jquery/test/data/json_obj.js +1 -0
  187. data/vendor/assets/components/jquery/test/data/jsonp.php +14 -0
  188. data/vendor/assets/components/jquery/test/data/manipulation/iframe-denied.html +36 -0
  189. data/vendor/assets/components/jquery/test/data/name.html +1 -0
  190. data/vendor/assets/components/jquery/test/data/name.php +24 -0
  191. data/vendor/assets/components/jquery/test/data/nocontent.php +5 -0
  192. data/vendor/assets/components/jquery/test/data/offset/absolute.html +41 -0
  193. data/vendor/assets/components/jquery/test/data/offset/body.html +26 -0
  194. data/vendor/assets/components/jquery/test/data/offset/fixed.html +34 -0
  195. data/vendor/assets/components/jquery/test/data/offset/relative.html +31 -0
  196. data/vendor/assets/components/jquery/test/data/offset/scroll.html +39 -0
  197. data/vendor/assets/components/jquery/test/data/offset/static.html +31 -0
  198. data/vendor/assets/components/jquery/test/data/offset/table.html +43 -0
  199. data/vendor/assets/components/jquery/test/data/params_html.php +12 -0
  200. data/vendor/assets/components/jquery/test/data/readywaitasset.js +1 -0
  201. data/vendor/assets/components/jquery/test/data/readywaitloader.js +25 -0
  202. data/vendor/assets/components/jquery/test/data/script.php +11 -0
  203. data/vendor/assets/components/jquery/test/data/selector/html5_selector.html +114 -0
  204. data/vendor/assets/components/jquery/test/data/selector/sizzle_cache.html +21 -0
  205. data/vendor/assets/components/jquery/test/data/statusText.php +5 -0
  206. data/vendor/assets/components/jquery/test/data/support/bodyBackground.html +28 -0
  207. data/vendor/assets/components/jquery/test/data/support/shrinkWrapBlocks.html +23 -0
  208. data/vendor/assets/components/jquery/test/data/support/testElementCrash.html +17 -0
  209. data/vendor/assets/components/jquery/test/data/test.html +7 -0
  210. data/vendor/assets/components/jquery/test/data/test.js +3 -0
  211. data/vendor/assets/components/jquery/test/data/test.php +7 -0
  212. data/vendor/assets/components/jquery/test/data/test2.html +5 -0
  213. data/vendor/assets/components/jquery/test/data/test3.html +3 -0
  214. data/vendor/assets/components/jquery/test/data/testinit.js +269 -0
  215. data/vendor/assets/components/jquery/test/data/testrunner.js +368 -0
  216. data/vendor/assets/components/jquery/test/data/testsuite.css +155 -0
  217. data/vendor/assets/components/jquery/test/data/text.php +12 -0
  218. data/vendor/assets/components/jquery/test/data/ua.txt +272 -0
  219. data/vendor/assets/components/jquery/test/data/with_fries.xml +25 -0
  220. data/vendor/assets/components/jquery/test/data/with_fries_over_jsonp.php +7 -0
  221. data/vendor/assets/components/jquery/test/delegatetest.html +228 -0
  222. data/vendor/assets/components/jquery/test/hovertest.html +158 -0
  223. data/vendor/assets/components/jquery/test/index.html +330 -0
  224. data/vendor/assets/components/jquery/test/localfile.html +75 -0
  225. data/vendor/assets/components/jquery/test/networkerror.html +84 -0
  226. data/vendor/assets/components/jquery/test/polluted.php +110 -0
  227. data/vendor/assets/components/jquery/test/readywait.html +70 -0
  228. data/vendor/assets/components/jquery/test/unit/ajax.js +1971 -0
  229. data/vendor/assets/components/jquery/test/unit/attributes.js +1332 -0
  230. data/vendor/assets/components/jquery/test/unit/callbacks.js +326 -0
  231. data/vendor/assets/components/jquery/test/unit/core.js +1332 -0
  232. data/vendor/assets/components/jquery/test/unit/css.js +1036 -0
  233. data/vendor/assets/components/jquery/test/unit/data.js +636 -0
  234. data/vendor/assets/components/jquery/test/unit/deferred.js +440 -0
  235. data/vendor/assets/components/jquery/test/unit/deprecated.js +1 -0
  236. data/vendor/assets/components/jquery/test/unit/dimensions.js +461 -0
  237. data/vendor/assets/components/jquery/test/unit/effects.js +2050 -0
  238. data/vendor/assets/components/jquery/test/unit/event.js +2690 -0
  239. data/vendor/assets/components/jquery/test/unit/exports.js +7 -0
  240. data/vendor/assets/components/jquery/test/unit/manipulation.js +2242 -0
  241. data/vendor/assets/components/jquery/test/unit/offset.js +549 -0
  242. data/vendor/assets/components/jquery/test/unit/queue.js +316 -0
  243. data/vendor/assets/components/jquery/test/unit/selector.js +185 -0
  244. data/vendor/assets/components/jquery/test/unit/serialize.js +146 -0
  245. data/vendor/assets/components/jquery/test/unit/support.js +384 -0
  246. data/vendor/assets/components/jquery/test/unit/traversing.js +667 -0
  247. data/vendor/assets/components/jquery/test/xhtml.php +5 -0
  248. data/vendor/assets/components/sir-trevor-js/CHANGELOG.md +44 -0
  249. data/vendor/assets/components/sir-trevor-js/Gemfile +3 -0
  250. data/vendor/assets/components/sir-trevor-js/Gemfile.lock +10 -0
  251. data/vendor/assets/components/sir-trevor-js/Gruntfile.js +109 -0
  252. data/vendor/assets/components/sir-trevor-js/MIT-LICENCE +20 -0
  253. data/vendor/assets/components/sir-trevor-js/Readme.md +84 -0
  254. data/vendor/assets/components/sir-trevor-js/bower.json +21 -0
  255. data/vendor/assets/components/sir-trevor-js/component.json +42 -0
  256. data/vendor/assets/components/sir-trevor-js/contributing.md +74 -0
  257. data/vendor/assets/components/sir-trevor-js/examples-component/component.json +14 -0
  258. data/vendor/assets/components/sir-trevor-js/examples-component/index.html +33 -0
  259. data/vendor/assets/components/sir-trevor-js/examples-component/index.js +29 -0
  260. data/vendor/assets/components/sir-trevor-js/examples-component/javascript/example_block.js +203 -0
  261. data/vendor/assets/components/sir-trevor-js/examples-component/javascript/limit_chars.js +46 -0
  262. data/vendor/assets/components/sir-trevor-js/examples-component/sir-trevor.gif +0 -0
  263. data/vendor/assets/components/sir-trevor-js/locales/cn.js +51 -0
  264. data/vendor/assets/components/sir-trevor-js/locales/de.js +51 -0
  265. data/vendor/assets/components/sir-trevor-js/locales/es.js +51 -0
  266. data/vendor/assets/components/sir-trevor-js/locales/fi.js +51 -0
  267. data/vendor/assets/components/sir-trevor-js/locales/fr.js +51 -0
  268. data/vendor/assets/components/sir-trevor-js/locales/pt.js +52 -0
  269. data/vendor/assets/components/sir-trevor-js/package.json +23 -0
  270. data/vendor/assets/components/sir-trevor-js/sir-trevor-icons.css +6 -0
  271. data/vendor/assets/components/sir-trevor-js/sir-trevor.css +393 -0
  272. data/vendor/assets/components/sir-trevor-js/sir-trevor.css.map +7 -0
  273. data/vendor/assets/components/sir-trevor-js/sir-trevor.js +5481 -0
  274. data/vendor/assets/components/sir-trevor-js/sir-trevor.min.js +13 -0
  275. data/vendor/assets/components/underscore/CNAME +1 -0
  276. data/vendor/assets/components/underscore/CONTRIBUTING.md +9 -0
  277. data/vendor/assets/components/underscore/LICENSE +22 -0
  278. data/vendor/assets/components/underscore/README.md +19 -0
  279. data/vendor/assets/components/underscore/Rakefile +10 -0
  280. data/vendor/assets/components/underscore/docs/docco.css +192 -0
  281. data/vendor/assets/components/underscore/docs/favicon.ico +0 -0
  282. data/vendor/assets/components/underscore/docs/images/background.png +0 -0
  283. data/vendor/assets/components/underscore/docs/images/underscore.png +0 -0
  284. data/vendor/assets/components/underscore/docs/underscore.html +823 -0
  285. data/vendor/assets/components/underscore/favicon.ico +0 -0
  286. data/vendor/assets/components/underscore/index.html +2467 -0
  287. data/vendor/assets/components/underscore/index.js +1 -0
  288. data/vendor/assets/components/underscore/package.json +16 -0
  289. data/vendor/assets/components/underscore/test/arrays.js +200 -0
  290. data/vendor/assets/components/underscore/test/chaining.js +59 -0
  291. data/vendor/assets/components/underscore/test/collections.js +453 -0
  292. data/vendor/assets/components/underscore/test/functions.js +265 -0
  293. data/vendor/assets/components/underscore/test/index.html +44 -0
  294. data/vendor/assets/components/underscore/test/objects.js +570 -0
  295. data/vendor/assets/components/underscore/test/speed.js +75 -0
  296. data/vendor/assets/components/underscore/test/utility.js +266 -0
  297. data/vendor/assets/components/underscore/test/vendor/jquery.js +9404 -0
  298. data/vendor/assets/components/underscore/test/vendor/jslitmus.js +670 -0
  299. data/vendor/assets/components/underscore/test/vendor/qunit.css +235 -0
  300. data/vendor/assets/components/underscore/test/vendor/qunit.js +1977 -0
  301. data/vendor/assets/components/underscore/test/vendor/runner.js +98 -0
  302. data/vendor/assets/components/underscore/underscore-min.js +1 -0
  303. data/vendor/assets/components/underscore/underscore.js +1226 -0
  304. metadata +473 -0
@@ -0,0 +1,12 @@
1
+ <div id="post">
2
+ <?php
3
+ foreach( $_POST as $key=>$value )
4
+ echo "<b id='$key'>$value</b>";
5
+ ?>
6
+ </div>
7
+ <div id="get">
8
+ <?php
9
+ foreach( $_GET as $key=>$value )
10
+ echo "<b id='$key'>$value</b>";
11
+ ?>
12
+ </div>
@@ -0,0 +1 @@
1
+ var delayedMessage = "It worked!";
@@ -0,0 +1,25 @@
1
+ // Simple script loader that uses jQuery.readyWait via jQuery.holdReady()
2
+
3
+ //Hold on jQuery!
4
+ jQuery.holdReady(true);
5
+
6
+ var readyRegExp = /^(complete|loaded)$/;
7
+
8
+ function assetLoaded( evt ){
9
+ var node = evt.currentTarget || evt.srcElement;
10
+ if ( evt.type === "load" || readyRegExp.test(node.readyState) ) {
11
+ jQuery.holdReady(false);
12
+ }
13
+ }
14
+
15
+ setTimeout( function() {
16
+ var script = document.createElement("script");
17
+ script.type = "text/javascript";
18
+ if ( script.addEventListener ) {
19
+ script.addEventListener( "load", assetLoaded, false );
20
+ } else {
21
+ script.attachEvent( "onreadystatechange", assetLoaded );
22
+ }
23
+ script.src = "data/readywaitasset.js";
24
+ document.getElementsByTagName("head")[0].appendChild(script);
25
+ }, 2000 );
@@ -0,0 +1,11 @@
1
+ <?php
2
+ error_reporting(0);
3
+ if ( $_REQUEST['header'] ) {
4
+ if ( $_REQUEST['header'] == "ecma" ) {
5
+ header("Content-type: application/ecmascript");
6
+ } else {
7
+ header("Content-type: text/javascript");
8
+ }
9
+ }
10
+ ?>
11
+ ok( true, "Script executed correctly." );
@@ -0,0 +1,114 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
5
+ <title>jQuery selector - attributes</title>
6
+
7
+ <script src="../../../dist/jquery.min.js"></script>
8
+
9
+ <script id="script1"
10
+ defer
11
+ async></script>
12
+
13
+ <script type="text/javascript">
14
+ document.createElement('video');
15
+ document.createElement('audio');
16
+ document.createElement('article');
17
+ document.createElement('details');
18
+ </script>
19
+ </head>
20
+ <body>
21
+ <img id="img1"
22
+ ismap>
23
+
24
+ <hr id="hr1"
25
+ noshade>
26
+
27
+ <form id="form1"
28
+ name="formName"
29
+ novalidate
30
+ formnovalidate>
31
+ <input type="text" id="text1"
32
+ tabindex="1"
33
+ name="name"
34
+ required
35
+ autofocus
36
+ readonly>
37
+ <textarea id="textarea1"
38
+ noresize></textarea>
39
+ </form>
40
+
41
+ <table>
42
+ <tr><td id="td1"
43
+ nowrap></td></tr>
44
+ </table>
45
+
46
+ <iframe id="iframe1"
47
+ src="iframe.html"
48
+ seamless></iframe>
49
+
50
+ <style id="style1"
51
+ scoped></style>
52
+
53
+ <ol id="ol1"
54
+ reversed></ol>
55
+
56
+ <article id="article1"
57
+ pubdate></article>
58
+
59
+ <details id="details1"
60
+ open></details>
61
+
62
+ <div id="div1"
63
+ nowrap
64
+ hidden
65
+ itemscope
66
+ draggable="true"
67
+ contenteditable="true"
68
+ aria-disabled="true">
69
+ <p>My name is <span id="span1"
70
+ spellcheck="true"
71
+ itemprop="name">Elizabeth</span>.</p>
72
+ </div>
73
+
74
+ <audio id="audio1"
75
+ muted></audio>
76
+
77
+ <video id="video1"
78
+ loop
79
+ controls
80
+ autoplay
81
+ autobuffer></video>
82
+
83
+ <map id="map1">
84
+ <area id="area1"
85
+ nohref
86
+ shape="default">
87
+ </map>
88
+
89
+ <input id="check1"
90
+ type="checkbox"
91
+ disabled
92
+ checked>
93
+
94
+ <select id="select1"
95
+ multiple>
96
+ <option id="option1"
97
+ selected
98
+ value="blar">blar</option>
99
+ </select>
100
+
101
+ <dl id="dl"
102
+ compact>
103
+ <dt>Term</dt><dd>This is the first definition in compact format.</dd>
104
+ <dt>Term</dt><dd>This is the second definition in compact format.</dd>
105
+ </dl>
106
+
107
+ <object id="object1"
108
+ declare></object>
109
+
110
+ <marquee id="marquee1"
111
+ direction="up"
112
+ truespeed>Scrolling text (non-standard)</marquee>
113
+ </body>
114
+ </html>
@@ -0,0 +1,21 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
5
+ <title>jQuery selector - sizzle cache</title>
6
+
7
+ <script src="../../../dist/jquery.js"></script>
8
+ <script>
9
+ var $cached = jQuery.noConflict(true);
10
+ </script>
11
+ <script src="../../../dist/jquery.min.js"></script>
12
+
13
+ </head>
14
+ <body>
15
+
16
+ <div class="test">
17
+ <a href="#" id="collision">Worlds collide</a>
18
+ </div>
19
+
20
+ </body>
21
+ </html>
@@ -0,0 +1,5 @@
1
+ <?php
2
+
3
+ header( "HTTP/1.0 $_GET[status] $_GET[text]" );
4
+
5
+ ?>
@@ -0,0 +1,28 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <style>
6
+ body {
7
+ background: #000000;
8
+ }
9
+
10
+ div {
11
+ padding: 15px;
12
+ border: 1px solid #999;
13
+ display: inline;
14
+ margin:8px;
15
+ }
16
+ </style>
17
+ </head>
18
+ <body>
19
+ <div>
20
+ <script src="../../../dist/jquery.min.js"></script>
21
+ </div>
22
+ <script>
23
+ jQuery(function() {
24
+ window.parent.iframeCallback( jQuery( "body" ).css( "backgroundColor" ), jQuery.support );
25
+ });
26
+ </script>
27
+ </body>
28
+ </html>
@@ -0,0 +1,23 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <style>
6
+ * {
7
+ -webkit-box-sizing: border-box;
8
+ -moz-box-sizing: border-box;
9
+ box-sizing: border-box;
10
+ }
11
+ </style>
12
+ </head>
13
+ <body>
14
+ <div>
15
+ <script src="../../../dist/jquery.min.js"></script>
16
+ </div>
17
+ <script>
18
+ jQuery(function() {
19
+ window.parent.iframeCallback( jQuery.support.shrinkWrapBlocks );
20
+ });
21
+ </script>
22
+ </body>
23
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
+ <style>
6
+ body {
7
+ background: url('../1x1.jpg');
8
+ }
9
+ </style>
10
+ <script src="../../../dist/jquery.min.js"></script>
11
+ </head>
12
+ <body>
13
+ <script>
14
+ window.parent.iframeCallback();
15
+ </script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,7 @@
1
+ html text<br/>
2
+ <script type="text/javascript">/* <![CDATA[ */
3
+ testFoo = "foo"; jQuery('#foo').html('foo');
4
+ ok( true, "test.html executed" );
5
+ /* ]]> */</script>
6
+ <script src="data/test.js"></script>
7
+ blabla
@@ -0,0 +1,3 @@
1
+ var testBar = "bar";
2
+ jQuery("#ap").html("bar");
3
+ ok( true, "test.js executed");
@@ -0,0 +1,7 @@
1
+ html text<br/>
2
+ <script type="text/javascript">/* <![CDATA[ */
3
+ testFoo = "foo"; jQuery('#foo').html('foo');
4
+ ok( true, "test.php executed" );
5
+ /* ]]> */</script>
6
+ <script src="data/test.js?<?php srand(); echo time() . '' . rand(); ?>"></script>
7
+ blabla
@@ -0,0 +1,5 @@
1
+ <script type="text/javascript">
2
+ var testFoo = "foo";
3
+ jQuery('#foo').html('foo');
4
+ ok( true, "test2.html executed" );
5
+ </script>
@@ -0,0 +1,3 @@
1
+ <div class="user">This is a user</div>
2
+ <div class="user">This is a user</div>
3
+ <div class="teacher">This is a teacher</div>
@@ -0,0 +1,269 @@
1
+ /*jshint multistr:true, quotmark:false */
2
+
3
+ var amdDefined, fireNative,
4
+ originaljQuery = this.jQuery || "jQuery",
5
+ original$ = this.$ || "$",
6
+ hasPHP = true,
7
+ isLocal = window.location.protocol === "file:",
8
+ // see RFC 2606
9
+ externalHost = "example.com";
10
+
11
+ // For testing .noConflict()
12
+ this.jQuery = originaljQuery;
13
+ this.$ = original$;
14
+
15
+ /**
16
+ * Set up a mock AMD define function for testing AMD registration.
17
+ */
18
+ function define( name, dependencies, callback ) {
19
+ amdDefined = callback();
20
+ }
21
+
22
+ define.amd = {
23
+ jQuery: true
24
+ };
25
+
26
+ /**
27
+ * Returns an array of elements with the given IDs
28
+ * @example q("main", "foo", "bar")
29
+ * @result [<div id="main">, <span id="foo">, <input id="bar">]
30
+ */
31
+ function q() {
32
+ var r = [],
33
+ i = 0;
34
+
35
+ for ( ; i < arguments.length; i++ ) {
36
+ r.push( document.getElementById( arguments[i] ) );
37
+ }
38
+ return r;
39
+ }
40
+
41
+ /**
42
+ * Asserts that a select matches the given IDs
43
+ * @param {String} a - Assertion name
44
+ * @param {String} b - Sizzle selector
45
+ * @param {String} c - Array of ids to construct what is expected
46
+ * @example t("Check for something", "//[a]", ["foo", "baar"]);
47
+ * @result returns true if "//[a]" return two elements with the IDs 'foo' and 'baar'
48
+ */
49
+ function t( a, b, c ) {
50
+ var f = jQuery(b).get(),
51
+ s = "",
52
+ i = 0;
53
+
54
+ for ( ; i < f.length; i++ ) {
55
+ s += ( s && "," ) + '"' + f[ i ].id + '"';
56
+ }
57
+
58
+ deepEqual(f, q.apply( q, c ), a + " (" + b + ")");
59
+ }
60
+
61
+ function createDashboardXML() {
62
+ var string = '<?xml version="1.0" encoding="UTF-8"?> \
63
+ <dashboard> \
64
+ <locations class="foo"> \
65
+ <location for="bar" checked="different"> \
66
+ <infowindowtab normal="ab" mixedCase="yes"> \
67
+ <tab title="Location"><![CDATA[blabla]]></tab> \
68
+ <tab title="Users"><![CDATA[blublu]]></tab> \
69
+ </infowindowtab> \
70
+ </location> \
71
+ </locations> \
72
+ </dashboard>';
73
+
74
+ return jQuery.parseXML(string);
75
+ }
76
+
77
+ function createWithFriesXML() {
78
+ var string = '<?xml version="1.0" encoding="UTF-8"?> \
79
+ <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" \
80
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema" \
81
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> \
82
+ <soap:Body> \
83
+ <jsconf xmlns="http://{{ externalHost }}/ns1"> \
84
+ <response xmlns:ab="http://{{ externalHost }}/ns2"> \
85
+ <meta> \
86
+ <component id="seite1" class="component"> \
87
+ <properties xmlns:cd="http://{{ externalHost }}/ns3"> \
88
+ <property name="prop1"> \
89
+ <thing /> \
90
+ <value>1</value> \
91
+ </property> \
92
+ <property name="prop2"> \
93
+ <thing att="something" /> \
94
+ </property> \
95
+ <foo_bar>foo</foo_bar> \
96
+ </properties> \
97
+ </component> \
98
+ </meta> \
99
+ </response> \
100
+ </jsconf> \
101
+ </soap:Body> \
102
+ </soap:Envelope>';
103
+
104
+ return jQuery.parseXML( string.replace( /\{\{\s*externalHost\s*\}\}/g, externalHost ) );
105
+ }
106
+
107
+ function createXMLFragment() {
108
+ var xml, frag;
109
+ if ( window.ActiveXObject ) {
110
+ xml = new ActiveXObject("msxml2.domdocument");
111
+ } else {
112
+ xml = document.implementation.createDocument( "", "", null );
113
+ }
114
+
115
+ if ( xml ) {
116
+ frag = xml.createElement("data");
117
+ }
118
+
119
+ return frag;
120
+ }
121
+
122
+ fireNative = document.createEvent ?
123
+ function( node, type ) {
124
+ var event = document.createEvent('HTMLEvents');
125
+ event.initEvent( type, true, true );
126
+ node.dispatchEvent( event );
127
+ } :
128
+ function( node, type ) {
129
+ var event = document.createEventObject();
130
+ node.fireEvent( 'on' + type, event );
131
+ };
132
+
133
+ /**
134
+ * Add random number to url to stop caching
135
+ *
136
+ * @example url("data/test.html")
137
+ * @result "data/test.html?10538358428943"
138
+ *
139
+ * @example url("data/test.php?foo=bar")
140
+ * @result "data/test.php?foo=bar&10538358345554"
141
+ */
142
+ function url( value ) {
143
+ return value + (/\?/.test(value) ? "&" : "?") + new Date().getTime() + "" + parseInt(Math.random() * 100000, 10);
144
+ }
145
+
146
+ // Ajax testing helper
147
+ function ajaxTest( title, expect, options ) {
148
+ var requestOptions;
149
+ if ( jQuery.isFunction( options ) ) {
150
+ options = options();
151
+ }
152
+ options = options || [];
153
+ requestOptions = options.requests || options.request || options;
154
+ if ( !jQuery.isArray( requestOptions ) ) {
155
+ requestOptions = [ requestOptions ];
156
+ }
157
+ asyncTest( title, expect, function() {
158
+ if ( options.setup ) {
159
+ options.setup();
160
+ }
161
+
162
+ var completed = false,
163
+ remaining = requestOptions.length,
164
+ complete = function() {
165
+ if ( !completed && --remaining === 0 ) {
166
+ completed = true;
167
+ delete ajaxTest.abort;
168
+ if ( options.teardown ) {
169
+ options.teardown();
170
+ }
171
+ start();
172
+ }
173
+ },
174
+ requests = jQuery.map( requestOptions, function( options ) {
175
+ var request = ( options.create || jQuery.ajax )( options ),
176
+ callIfDefined = function( deferType, optionType ) {
177
+ var handler = options[ deferType ] || !!options[ optionType ];
178
+ return function( _, status ) {
179
+ if ( !completed ) {
180
+ if ( !handler ) {
181
+ ok( false, "unexpected " + status );
182
+ } else if ( jQuery.isFunction( handler ) ) {
183
+ handler.apply( this, arguments );
184
+ }
185
+ }
186
+ };
187
+ };
188
+
189
+ if ( options.afterSend ) {
190
+ options.afterSend( request );
191
+ }
192
+
193
+ return request
194
+ .done( callIfDefined( "done", "success" ) )
195
+ .fail( callIfDefined( "fail", "error" ) )
196
+ .always( complete );
197
+ });
198
+
199
+ ajaxTest.abort = function( reason ) {
200
+ if ( !completed ) {
201
+ completed = true;
202
+ delete ajaxTest.abort;
203
+ ok( false, "aborted " + reason );
204
+ jQuery.each( requests, function( i, request ) {
205
+ request.abort();
206
+ });
207
+ }
208
+ };
209
+ });
210
+ }
211
+
212
+ (function () {
213
+
214
+ this.testIframe = function( fileName, name, fn ) {
215
+
216
+ test(name, function() {
217
+ // pause execution for now
218
+ stop();
219
+
220
+ // load fixture in iframe
221
+ var iframe = loadFixture(),
222
+ win = iframe.contentWindow,
223
+ interval = setInterval( function() {
224
+ if ( win && win.jQuery && win.jQuery.isReady ) {
225
+ clearInterval( interval );
226
+ // continue
227
+ start();
228
+ // call actual tests passing the correct jQuery instance to use
229
+ fn.call( this, win.jQuery, win, win.document );
230
+ document.body.removeChild( iframe );
231
+ iframe = null;
232
+ }
233
+ }, 15 );
234
+ });
235
+
236
+ function loadFixture() {
237
+ var src = url("./data/" + fileName + ".html"),
238
+ iframe = jQuery("<iframe />").appendTo("body")[0];
239
+ iframe.style.cssText = "width: 500px; height: 500px; position: absolute; top: -600px; left: -600px; visibility: hidden;";
240
+ iframe.contentWindow.location = src;
241
+ return iframe;
242
+ }
243
+ };
244
+
245
+ this.testIframeWithCallback = function( title, fileName, func ) {
246
+
247
+ test( title, function() {
248
+ var iframe;
249
+
250
+ stop();
251
+ window.iframeCallback = function() {
252
+ var self = this,
253
+ args = arguments;
254
+ setTimeout(function() {
255
+ window.iframeCallback = undefined;
256
+ iframe.remove();
257
+ func.apply( self, args );
258
+ func = function() {};
259
+ start();
260
+ }, 0 );
261
+ };
262
+ iframe = jQuery( "<div/>" ).append(
263
+ jQuery( "<iframe/>" ).attr( "src", url( "./data/" + fileName ) )
264
+ ).appendTo( "body" );
265
+ });
266
+ };
267
+
268
+ window.iframeCallback = undefined;
269
+ }());