patternfly-sass 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (325) hide show
  1. checksums.yaml +4 -4
  2. data/.bowerrc +1 -1
  3. data/.gitignore +2 -4
  4. data/.travis.yml +6 -3
  5. data/README.md +187 -26
  6. data/Rakefile +21 -17
  7. data/assets/stylesheets/patternfly/_variables.scss +206 -206
  8. data/bower.json +11 -12
  9. data/lib/patternfly-sass/version.rb +2 -2
  10. data/patternfly-sass.gemspec +1 -1
  11. data/{tests → spec}/capture.js +0 -0
  12. data/spec/compare_spec.rb +15 -5
  13. data/{tests/patternfly → spec/html}/accordions.html +0 -0
  14. data/{tests/patternfly → spec/html}/alerts.html +0 -0
  15. data/{tests/patternfly → spec/html}/badges.html +0 -0
  16. data/{tests/patternfly → spec/html}/basic.html +0 -0
  17. data/{tests/patternfly → spec/html}/blank-slate.html +0 -0
  18. data/{tests/patternfly → spec/html}/bootstrap-combobox.html +0 -0
  19. data/{tests/patternfly → spec/html}/bootstrap-select.html +0 -0
  20. data/{tests/patternfly → spec/html}/bootstrap-treeview-2.html +0 -0
  21. data/{tests/patternfly → spec/html}/bootstrap-treeview.html +0 -0
  22. data/{tests/patternfly → spec/html}/breadcrumbs.html +0 -0
  23. data/{tests/patternfly → spec/html}/buttons.html +0 -0
  24. data/{tests/patternfly → spec/html}/code.html +0 -0
  25. data/{tests/patternfly → spec/html}/dashboard.html +0 -0
  26. data/{tests/patternfly → spec/html}/datatables-columns.html +0 -0
  27. data/{tests/patternfly → spec/html}/datatables.html +0 -0
  28. data/{tests/patternfly → spec/html}/dist/css/patternfly.css +0 -0
  29. data/{tests/patternfly → spec/html}/dist/css/patternfly.min.css +0 -0
  30. data/{tests/patternfly → spec/html}/dist/css/styles.css +0 -0
  31. data/{tests/patternfly → spec/html}/dist/css/styles.min.css +0 -0
  32. data/{tests/patternfly → spec/html}/dropdowns.html +0 -0
  33. data/{tests/patternfly → spec/html}/form.html +0 -0
  34. data/{tests/patternfly → spec/html}/forms.html +0 -0
  35. data/{tests/patternfly → spec/html}/icons.html +0 -0
  36. data/{tests/patternfly → spec/html}/img/dashboard-1.png +0 -0
  37. data/{tests/patternfly → spec/html}/img/dashboard-2.png +0 -0
  38. data/{tests/patternfly → spec/html}/img/dashboard-3.png +0 -0
  39. data/{tests/patternfly → spec/html}/img/dashboard-4.png +0 -0
  40. data/{tests/patternfly → spec/html}/index.html +0 -0
  41. data/{tests/patternfly → spec/html}/infotip.html +0 -0
  42. data/{tests/patternfly → spec/html}/labels.html +0 -0
  43. data/{tests/patternfly → spec/html}/list-group.html +0 -0
  44. data/{tests/patternfly → spec/html}/login.html +0 -0
  45. data/{tests/index.html → spec/html/main.html} +0 -0
  46. data/{tests/patternfly → spec/html}/modals.html +0 -0
  47. data/{tests/patternfly → spec/html}/navbar.html +0 -0
  48. data/{tests/patternfly → spec/html}/pagination.html +0 -0
  49. data/{tests/patternfly → spec/html}/panels.html +0 -0
  50. data/{tests/patternfly → spec/html}/popovers.html +0 -0
  51. data/{tests/patternfly → spec/html}/progress-bars.html +0 -0
  52. data/{tests/patternfly → spec/html}/search.html +0 -0
  53. data/{tests/patternfly → spec/html}/spinner.html +0 -0
  54. data/{tests/patternfly → spec/html}/tab.html +0 -0
  55. data/{tests/patternfly → spec/html}/tables.html +0 -0
  56. data/{tests/patternfly → spec/html}/tabs.html +0 -0
  57. data/{tests/patternfly → spec/html}/tests.css +0 -0
  58. data/{tests/patternfly → spec/html}/tooltip.html +0 -0
  59. data/{tests/patternfly → spec/html}/typography-2.css +0 -0
  60. data/{tests/patternfly → spec/html}/typography-2.html +0 -0
  61. data/{tests/patternfly → spec/html}/typography.html +0 -0
  62. data/tasks/converter.rb +6 -9
  63. metadata +103 -626
  64. data/package.json +0 -28
  65. data/tests/components/bootstrap-combobox/.bower.json +0 -14
  66. data/tests/components/bootstrap-combobox/.gitignore +0 -1
  67. data/tests/components/bootstrap-combobox/README.md +0 -59
  68. data/tests/components/bootstrap-combobox/css/bootstrap-combobox.css +0 -42
  69. data/tests/components/bootstrap-combobox/js/bootstrap-combobox.js +0 -438
  70. data/tests/components/bootstrap-combobox/js/tests/index.html +0 -29
  71. data/tests/components/bootstrap-combobox/js/tests/unit/bootstrap-combobox.js +0 -323
  72. data/tests/components/bootstrap-combobox/js/tests/vendor/jquery.js +0 -9597
  73. data/tests/components/bootstrap-combobox/js/tests/vendor/qunit.css +0 -244
  74. data/tests/components/bootstrap-combobox/js/tests/vendor/qunit.js +0 -2152
  75. data/tests/components/bootstrap-combobox/less/combobox.less +0 -55
  76. data/tests/components/bootstrap-select/.bower.json +0 -38
  77. data/tests/components/bootstrap-select/CONTRIBUTING.md +0 -87
  78. data/tests/components/bootstrap-select/README.md +0 -61
  79. data/tests/components/bootstrap-select/bootstrap-select.css +0 -309
  80. data/tests/components/bootstrap-select/bootstrap-select.jquery.json +0 -29
  81. data/tests/components/bootstrap-select/bootstrap-select.js +0 -972
  82. data/tests/components/bootstrap-select/bootstrap-select.min.css +0 -7
  83. data/tests/components/bootstrap-select/bootstrap-select.min.js +0 -8
  84. data/tests/components/bootstrap-select/bower.json +0 -29
  85. data/tests/components/bootstrap-select/composer.json +0 -17
  86. data/tests/components/bootstrap-select/i18n/defaults-cs-CZ.js +0 -29
  87. data/tests/components/bootstrap-select/i18n/defaults-cz-CZ.min.js +0 -6
  88. data/tests/components/bootstrap-select/i18n/defaults-de_DE.js +0 -29
  89. data/tests/components/bootstrap-select/i18n/defaults-de_DE.min.js +0 -6
  90. data/tests/components/bootstrap-select/i18n/defaults-es-CL.js +0 -29
  91. data/tests/components/bootstrap-select/i18n/defaults-es-CL.min.js +0 -6
  92. data/tests/components/bootstrap-select/i18n/defaults-eu.js +0 -30
  93. data/tests/components/bootstrap-select/i18n/defaults-eu.min.js +0 -6
  94. data/tests/components/bootstrap-select/i18n/defaults-it_IT.js +0 -32
  95. data/tests/components/bootstrap-select/i18n/defaults-it_IT.min.js +0 -1
  96. data/tests/components/bootstrap-select/i18n/defaults-nl_NL.js +0 -32
  97. data/tests/components/bootstrap-select/i18n/defaults-nl_NL.min.js +0 -7
  98. data/tests/components/bootstrap-select/i18n/defaults-pl_PL.js +0 -29
  99. data/tests/components/bootstrap-select/i18n/defaults-pl_PL.min.js +0 -6
  100. data/tests/components/bootstrap-select/i18n/defaults-pt_BR.js +0 -33
  101. data/tests/components/bootstrap-select/i18n/defaults-pt_BR.min.js +0 -7
  102. data/tests/components/bootstrap-select/i18n/defaults-ru-RU.js +0 -31
  103. data/tests/components/bootstrap-select/i18n/defaults-ru_RU.min.js +0 -6
  104. data/tests/components/bootstrap-select/i18n/defaults-zh_CN.js +0 -30
  105. data/tests/components/bootstrap-select/i18n/defaults-zh_CN.min.js +0 -6
  106. data/tests/components/bootstrap-select/package.json +0 -31
  107. data/tests/components/bootstrap-select/test.html +0 -62
  108. data/tests/components/bootstrap-treeview/.bower.json +0 -38
  109. data/tests/components/bootstrap-treeview/Gruntfile.js +0 -62
  110. data/tests/components/bootstrap-treeview/LICENSE +0 -202
  111. data/tests/components/bootstrap-treeview/README.md +0 -289
  112. data/tests/components/bootstrap-treeview/app.js +0 -29
  113. data/tests/components/bootstrap-treeview/bower.json +0 -29
  114. data/tests/components/bootstrap-treeview/dist/bootstrap-treeview.min.css +0 -1
  115. data/tests/components/bootstrap-treeview/dist/bootstrap-treeview.min.js +0 -1
  116. data/tests/components/bootstrap-treeview/package.json +0 -18
  117. data/tests/components/bootstrap-treeview/public/css/bootstrap-treeview.css +0 -37
  118. data/tests/components/bootstrap-treeview/public/example-dom.html +0 -59
  119. data/tests/components/bootstrap-treeview/public/index.html +0 -333
  120. data/tests/components/bootstrap-treeview/public/js/bootstrap-treeview.js +0 -455
  121. data/tests/components/bootstrap-treeview/screenshot/default.PNG +0 -0
  122. data/tests/components/bootstrap-treeview/src/css/bootstrap-treeview.css +0 -37
  123. data/tests/components/bootstrap-treeview/src/js/bootstrap-treeview.js +0 -455
  124. data/tests/components/datatables-colreorder/.bower.json +0 -22
  125. data/tests/components/datatables-colreorder/License.txt +0 -20
  126. data/tests/components/datatables-colreorder/Readme.md +0 -39
  127. data/tests/components/datatables-colreorder/bower.json +0 -12
  128. data/tests/components/datatables-colreorder/css/dataTables.colReorder.css +0 -14
  129. data/tests/components/datatables-colreorder/examples/alt_insert.xml +0 -30
  130. data/tests/components/datatables-colreorder/examples/col_filter.xml +0 -38
  131. data/tests/components/datatables-colreorder/examples/colvis.xml +0 -26
  132. data/tests/components/datatables-colreorder/examples/fixedcolumns.xml +0 -43
  133. data/tests/components/datatables-colreorder/examples/fixedheader.xml +0 -27
  134. data/tests/components/datatables-colreorder/examples/index.xml +0 -19
  135. data/tests/components/datatables-colreorder/examples/jqueryui.xml +0 -27
  136. data/tests/components/datatables-colreorder/examples/new_init.xml +0 -23
  137. data/tests/components/datatables-colreorder/examples/predefined.xml +0 -30
  138. data/tests/components/datatables-colreorder/examples/realtime.xml +0 -30
  139. data/tests/components/datatables-colreorder/examples/reset.xml +0 -41
  140. data/tests/components/datatables-colreorder/examples/scrolling.xml +0 -27
  141. data/tests/components/datatables-colreorder/examples/server_side.xml +0 -38
  142. data/tests/components/datatables-colreorder/examples/simple.xml +0 -25
  143. data/tests/components/datatables-colreorder/examples/state_save.xml +0 -26
  144. data/tests/components/datatables-colreorder/images/.DS_Store +0 -0
  145. data/tests/components/datatables-colreorder/images/insert.png +0 -0
  146. data/tests/components/datatables-colreorder/js/dataTables.colReorder.js +0 -1372
  147. data/tests/components/datatables-colreorder/make.sh +0 -31
  148. data/tests/components/datatables-colvis/.bower.json +0 -22
  149. data/tests/components/datatables-colvis/License.txt +0 -20
  150. data/tests/components/datatables-colvis/README.md +0 -38
  151. data/tests/components/datatables-colvis/bower.json +0 -12
  152. data/tests/components/datatables-colvis/css/dataTables.colVis.css +0 -185
  153. data/tests/components/datatables-colvis/css/dataTables.colvis.jqueryui.css +0 -41
  154. data/tests/components/datatables-colvis/examples/.DS_Store +0 -0
  155. data/tests/components/datatables-colvis/examples/button_order.xml +0 -26
  156. data/tests/components/datatables-colvis/examples/exclude_columns.xml +0 -28
  157. data/tests/components/datatables-colvis/examples/group_columns.xml +0 -40
  158. data/tests/components/datatables-colvis/examples/index.xml +0 -18
  159. data/tests/components/datatables-colvis/examples/jqueryui.xml +0 -28
  160. data/tests/components/datatables-colvis/examples/mouseover.xml +0 -28
  161. data/tests/components/datatables-colvis/examples/new_init.xml +0 -26
  162. data/tests/components/datatables-colvis/examples/restore.xml +0 -33
  163. data/tests/components/datatables-colvis/examples/simple.xml +0 -25
  164. data/tests/components/datatables-colvis/examples/text.xml +0 -29
  165. data/tests/components/datatables-colvis/examples/title_callback.xml +0 -30
  166. data/tests/components/datatables-colvis/examples/two_tables.xml +0 -24
  167. data/tests/components/datatables-colvis/examples/two_tables_identical.xml +0 -35
  168. data/tests/components/datatables-colvis/js/dataTables.colVis.js +0 -1123
  169. data/tests/components/datatables-colvis/make.sh +0 -28
  170. data/tests/components/datatables/.bower.json +0 -42
  171. data/tests/components/datatables/Contributing.md +0 -18
  172. data/tests/components/datatables/Readme.md +0 -53
  173. data/tests/components/datatables/bower.json +0 -32
  174. data/tests/components/datatables/license.txt +0 -20
  175. data/tests/components/datatables/media/css/jquery.dataTables.css +0 -455
  176. data/tests/components/datatables/media/css/jquery.dataTables.min.css +0 -1
  177. data/tests/components/datatables/media/css/jquery.dataTables_themeroller.css +0 -416
  178. data/tests/components/datatables/media/images/Sorting icons.psd +0 -0
  179. data/tests/components/datatables/media/images/favicon.ico +0 -0
  180. data/tests/components/datatables/media/images/sort_asc.png +0 -0
  181. data/tests/components/datatables/media/images/sort_asc_disabled.png +0 -0
  182. data/tests/components/datatables/media/images/sort_both.png +0 -0
  183. data/tests/components/datatables/media/images/sort_desc.png +0 -0
  184. data/tests/components/datatables/media/images/sort_desc_disabled.png +0 -0
  185. data/tests/components/datatables/media/js/jquery.dataTables.js +0 -14951
  186. data/tests/components/datatables/media/js/jquery.dataTables.min.js +0 -160
  187. data/tests/components/datatables/media/js/jquery.js +0 -5
  188. data/tests/components/google-code-prettify/.bower.json +0 -26
  189. data/tests/components/google-code-prettify/CHANGES.html +0 -172
  190. data/tests/components/google-code-prettify/COPYING +0 -191
  191. data/tests/components/google-code-prettify/README-zh-Hans.html +0 -143
  192. data/tests/components/google-code-prettify/README.html +0 -233
  193. data/tests/components/google-code-prettify/README.md +0 -54
  194. data/tests/components/google-code-prettify/bin/prettify.min.css +0 -1
  195. data/tests/components/google-code-prettify/bin/prettify.min.js +0 -30
  196. data/tests/components/google-code-prettify/bin/run_prettify.min.js +0 -34
  197. data/tests/components/google-code-prettify/bower.json +0 -16
  198. data/tests/components/google-code-prettify/examples/quine.html +0 -55
  199. data/tests/components/google-code-prettify/src/lang-apollo.js +0 -51
  200. data/tests/components/google-code-prettify/src/lang-basic.js +0 -32
  201. data/tests/components/google-code-prettify/src/lang-clj.js +0 -64
  202. data/tests/components/google-code-prettify/src/lang-css.js +0 -159
  203. data/tests/components/google-code-prettify/src/lang-dart.js +0 -88
  204. data/tests/components/google-code-prettify/src/lang-erlang.js +0 -92
  205. data/tests/components/google-code-prettify/src/lang-go.js +0 -58
  206. data/tests/components/google-code-prettify/src/lang-hs.js +0 -101
  207. data/tests/components/google-code-prettify/src/lang-lisp.js +0 -94
  208. data/tests/components/google-code-prettify/src/lang-llvm.js +0 -61
  209. data/tests/components/google-code-prettify/src/lang-lua.js +0 -59
  210. data/tests/components/google-code-prettify/src/lang-matlab.js +0 -180
  211. data/tests/components/google-code-prettify/src/lang-ml.js +0 -56
  212. data/tests/components/google-code-prettify/src/lang-mumps.js +0 -139
  213. data/tests/components/google-code-prettify/src/lang-n.js +0 -65
  214. data/tests/components/google-code-prettify/src/lang-pascal.js +0 -32
  215. data/tests/components/google-code-prettify/src/lang-proto.js +0 -35
  216. data/tests/components/google-code-prettify/src/lang-r.js +0 -57
  217. data/tests/components/google-code-prettify/src/lang-rd.js +0 -47
  218. data/tests/components/google-code-prettify/src/lang-scala.js +0 -54
  219. data/tests/components/google-code-prettify/src/lang-sql.js +0 -58
  220. data/tests/components/google-code-prettify/src/lang-tcl.js +0 -62
  221. data/tests/components/google-code-prettify/src/lang-tex.js +0 -46
  222. data/tests/components/google-code-prettify/src/lang-vb.js +0 -66
  223. data/tests/components/google-code-prettify/src/lang-vhdl.js +0 -34
  224. data/tests/components/google-code-prettify/src/lang-wiki.js +0 -53
  225. data/tests/components/google-code-prettify/src/lang-xq.js +0 -67
  226. data/tests/components/google-code-prettify/src/lang-yaml.js +0 -27
  227. data/tests/components/google-code-prettify/src/prettify.css +0 -52
  228. data/tests/components/google-code-prettify/src/prettify.js +0 -1655
  229. data/tests/components/google-code-prettify/src/run_prettify.js +0 -1905
  230. data/tests/components/google-code-prettify/styles/demo.html +0 -61
  231. data/tests/components/google-code-prettify/styles/desert.css +0 -34
  232. data/tests/components/google-code-prettify/styles/doxy.css +0 -64
  233. data/tests/components/google-code-prettify/styles/index.html +0 -89
  234. data/tests/components/google-code-prettify/styles/sons-of-obsidian.css +0 -118
  235. data/tests/components/google-code-prettify/styles/sunburst.css +0 -51
  236. data/tests/components/jquery/.bower.json +0 -38
  237. data/tests/components/jquery/MIT-LICENSE.txt +0 -21
  238. data/tests/components/jquery/bower.json +0 -28
  239. data/tests/components/jquery/dist/jquery.js +0 -9210
  240. data/tests/components/jquery/dist/jquery.min.js +0 -5
  241. data/tests/components/jquery/dist/jquery.min.map +0 -1
  242. data/tests/components/jquery/src/ajax.js +0 -786
  243. data/tests/components/jquery/src/ajax/jsonp.js +0 -89
  244. data/tests/components/jquery/src/ajax/load.js +0 -75
  245. data/tests/components/jquery/src/ajax/parseJSON.js +0 -13
  246. data/tests/components/jquery/src/ajax/parseXML.js +0 -28
  247. data/tests/components/jquery/src/ajax/script.js +0 -64
  248. data/tests/components/jquery/src/ajax/var/nonce.js +0 -5
  249. data/tests/components/jquery/src/ajax/var/rquery.js +0 -3
  250. data/tests/components/jquery/src/ajax/xhr.js +0 -136
  251. data/tests/components/jquery/src/attributes.js +0 -11
  252. data/tests/components/jquery/src/attributes/attr.js +0 -141
  253. data/tests/components/jquery/src/attributes/classes.js +0 -158
  254. data/tests/components/jquery/src/attributes/prop.js +0 -94
  255. data/tests/components/jquery/src/attributes/support.js +0 -35
  256. data/tests/components/jquery/src/attributes/val.js +0 -161
  257. data/tests/components/jquery/src/callbacks.js +0 -205
  258. data/tests/components/jquery/src/core.js +0 -502
  259. data/tests/components/jquery/src/core/access.js +0 -60
  260. data/tests/components/jquery/src/core/init.js +0 -123
  261. data/tests/components/jquery/src/core/parseHTML.js +0 -39
  262. data/tests/components/jquery/src/core/ready.js +0 -97
  263. data/tests/components/jquery/src/core/var/rsingleTag.js +0 -4
  264. data/tests/components/jquery/src/css.js +0 -450
  265. data/tests/components/jquery/src/css/addGetHookIf.js +0 -22
  266. data/tests/components/jquery/src/css/curCSS.js +0 -57
  267. data/tests/components/jquery/src/css/defaultDisplay.js +0 -70
  268. data/tests/components/jquery/src/css/hiddenVisibleSelectors.js +0 -15
  269. data/tests/components/jquery/src/css/support.js +0 -96
  270. data/tests/components/jquery/src/css/swap.js +0 -28
  271. data/tests/components/jquery/src/css/var/cssExpand.js +0 -3
  272. data/tests/components/jquery/src/css/var/getStyles.js +0 -12
  273. data/tests/components/jquery/src/css/var/isHidden.js +0 -13
  274. data/tests/components/jquery/src/css/var/rmargin.js +0 -3
  275. data/tests/components/jquery/src/css/var/rnumnonpx.js +0 -5
  276. data/tests/components/jquery/src/data.js +0 -178
  277. data/tests/components/jquery/src/data/Data.js +0 -181
  278. data/tests/components/jquery/src/data/accepts.js +0 -20
  279. data/tests/components/jquery/src/data/var/data_priv.js +0 -5
  280. data/tests/components/jquery/src/data/var/data_user.js +0 -5
  281. data/tests/components/jquery/src/deferred.js +0 -149
  282. data/tests/components/jquery/src/deprecated.js +0 -13
  283. data/tests/components/jquery/src/dimensions.js +0 -50
  284. data/tests/components/jquery/src/effects.js +0 -648
  285. data/tests/components/jquery/src/effects/Tween.js +0 -114
  286. data/tests/components/jquery/src/effects/animatedSelector.js +0 -13
  287. data/tests/components/jquery/src/event.js +0 -868
  288. data/tests/components/jquery/src/event/ajax.js +0 -13
  289. data/tests/components/jquery/src/event/alias.js +0 -39
  290. data/tests/components/jquery/src/event/support.js +0 -9
  291. data/tests/components/jquery/src/exports/amd.js +0 -24
  292. data/tests/components/jquery/src/exports/global.js +0 -32
  293. data/tests/components/jquery/src/intro.js +0 -44
  294. data/tests/components/jquery/src/jquery.js +0 -37
  295. data/tests/components/jquery/src/manipulation.js +0 -580
  296. data/tests/components/jquery/src/manipulation/_evalUrl.js +0 -18
  297. data/tests/components/jquery/src/manipulation/support.js +0 -32
  298. data/tests/components/jquery/src/manipulation/var/rcheckableType.js +0 -3
  299. data/tests/components/jquery/src/offset.js +0 -207
  300. data/tests/components/jquery/src/outro.js +0 -1
  301. data/tests/components/jquery/src/queue.js +0 -142
  302. data/tests/components/jquery/src/queue/delay.js +0 -22
  303. data/tests/components/jquery/src/selector-native.js +0 -172
  304. data/tests/components/jquery/src/selector-sizzle.js +0 -14
  305. data/tests/components/jquery/src/selector.js +0 -1
  306. data/tests/components/jquery/src/serialize.js +0 -111
  307. data/tests/components/jquery/src/sizzle/dist/sizzle.js +0 -2067
  308. data/tests/components/jquery/src/sizzle/dist/sizzle.min.js +0 -3
  309. data/tests/components/jquery/src/sizzle/dist/sizzle.min.map +0 -1
  310. data/tests/components/jquery/src/traversing.js +0 -199
  311. data/tests/components/jquery/src/traversing/findFilter.js +0 -100
  312. data/tests/components/jquery/src/traversing/var/rneedsContext.js +0 -6
  313. data/tests/components/jquery/src/var/arr.js +0 -3
  314. data/tests/components/jquery/src/var/class2type.js +0 -4
  315. data/tests/components/jquery/src/var/concat.js +0 -5
  316. data/tests/components/jquery/src/var/hasOwn.js +0 -5
  317. data/tests/components/jquery/src/var/indexOf.js +0 -5
  318. data/tests/components/jquery/src/var/pnum.js +0 -3
  319. data/tests/components/jquery/src/var/push.js +0 -5
  320. data/tests/components/jquery/src/var/rnotwhite.js +0 -3
  321. data/tests/components/jquery/src/var/slice.js +0 -5
  322. data/tests/components/jquery/src/var/strundefined.js +0 -3
  323. data/tests/components/jquery/src/var/support.js +0 -4
  324. data/tests/components/jquery/src/var/toString.js +0 -5
  325. data/tests/components/jquery/src/wrap.js +0 -79
@@ -1,89 +0,0 @@
1
- define([
2
- "../core",
3
- "./var/nonce",
4
- "./var/rquery",
5
- "../ajax"
6
- ], function( jQuery, nonce, rquery ) {
7
-
8
- var oldCallbacks = [],
9
- rjsonp = /(=)\?(?=&|$)|\?\?/;
10
-
11
- // Default jsonp settings
12
- jQuery.ajaxSetup({
13
- jsonp: "callback",
14
- jsonpCallback: function() {
15
- var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
16
- this[ callback ] = true;
17
- return callback;
18
- }
19
- });
20
-
21
- // Detect, normalize options and install callbacks for jsonp requests
22
- jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
23
-
24
- var callbackName, overwritten, responseContainer,
25
- jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
26
- "url" :
27
- typeof s.data === "string" && !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") && rjsonp.test( s.data ) && "data"
28
- );
29
-
30
- // Handle iff the expected data type is "jsonp" or we have a parameter to set
31
- if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
32
-
33
- // Get callback name, remembering preexisting value associated with it
34
- callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
35
- s.jsonpCallback() :
36
- s.jsonpCallback;
37
-
38
- // Insert callback into url or form data
39
- if ( jsonProp ) {
40
- s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
41
- } else if ( s.jsonp !== false ) {
42
- s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
43
- }
44
-
45
- // Use data converter to retrieve json after script execution
46
- s.converters["script json"] = function() {
47
- if ( !responseContainer ) {
48
- jQuery.error( callbackName + " was not called" );
49
- }
50
- return responseContainer[ 0 ];
51
- };
52
-
53
- // force json dataType
54
- s.dataTypes[ 0 ] = "json";
55
-
56
- // Install callback
57
- overwritten = window[ callbackName ];
58
- window[ callbackName ] = function() {
59
- responseContainer = arguments;
60
- };
61
-
62
- // Clean-up function (fires after converters)
63
- jqXHR.always(function() {
64
- // Restore preexisting value
65
- window[ callbackName ] = overwritten;
66
-
67
- // Save back as free
68
- if ( s[ callbackName ] ) {
69
- // make sure that re-using the options doesn't screw things around
70
- s.jsonpCallback = originalSettings.jsonpCallback;
71
-
72
- // save the callback name for future use
73
- oldCallbacks.push( callbackName );
74
- }
75
-
76
- // Call if it was a function and we have a response
77
- if ( responseContainer && jQuery.isFunction( overwritten ) ) {
78
- overwritten( responseContainer[ 0 ] );
79
- }
80
-
81
- responseContainer = overwritten = undefined;
82
- });
83
-
84
- // Delegate to script
85
- return "script";
86
- }
87
- });
88
-
89
- });
@@ -1,75 +0,0 @@
1
- define([
2
- "../core",
3
- "../core/parseHTML",
4
- "../ajax",
5
- "../traversing",
6
- "../manipulation",
7
- "../selector",
8
- // Optional event/alias dependency
9
- "../event/alias"
10
- ], function( jQuery ) {
11
-
12
- // Keep a copy of the old load method
13
- var _load = jQuery.fn.load;
14
-
15
- /**
16
- * Load a url into a page
17
- */
18
- jQuery.fn.load = function( url, params, callback ) {
19
- if ( typeof url !== "string" && _load ) {
20
- return _load.apply( this, arguments );
21
- }
22
-
23
- var selector, type, response,
24
- self = this,
25
- off = url.indexOf(" ");
26
-
27
- if ( off >= 0 ) {
28
- selector = jQuery.trim( url.slice( off ) );
29
- url = url.slice( 0, off );
30
- }
31
-
32
- // If it's a function
33
- if ( jQuery.isFunction( params ) ) {
34
-
35
- // We assume that it's the callback
36
- callback = params;
37
- params = undefined;
38
-
39
- // Otherwise, build a param string
40
- } else if ( params && typeof params === "object" ) {
41
- type = "POST";
42
- }
43
-
44
- // If we have elements to modify, make the request
45
- if ( self.length > 0 ) {
46
- jQuery.ajax({
47
- url: url,
48
-
49
- // if "type" variable is undefined, then "GET" method will be used
50
- type: type,
51
- dataType: "html",
52
- data: params
53
- }).done(function( responseText ) {
54
-
55
- // Save response for use in complete callback
56
- response = arguments;
57
-
58
- self.html( selector ?
59
-
60
- // If a selector was specified, locate the right elements in a dummy div
61
- // Exclude scripts to avoid IE 'Permission Denied' errors
62
- jQuery("<div>").append( jQuery.parseHTML( responseText ) ).find( selector ) :
63
-
64
- // Otherwise use the full result
65
- responseText );
66
-
67
- }).complete( callback && function( jqXHR, status ) {
68
- self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] );
69
- });
70
- }
71
-
72
- return this;
73
- };
74
-
75
- });
@@ -1,13 +0,0 @@
1
- define([
2
- "../core"
3
- ], function( jQuery ) {
4
-
5
- // Support: Android 2.3
6
- // Workaround failure to string-cast null input
7
- jQuery.parseJSON = function( data ) {
8
- return JSON.parse( data + "" );
9
- };
10
-
11
- return jQuery.parseJSON;
12
-
13
- });
@@ -1,28 +0,0 @@
1
- define([
2
- "../core"
3
- ], function( jQuery ) {
4
-
5
- // Cross-browser xml parsing
6
- jQuery.parseXML = function( data ) {
7
- var xml, tmp;
8
- if ( !data || typeof data !== "string" ) {
9
- return null;
10
- }
11
-
12
- // Support: IE9
13
- try {
14
- tmp = new DOMParser();
15
- xml = tmp.parseFromString( data, "text/xml" );
16
- } catch ( e ) {
17
- xml = undefined;
18
- }
19
-
20
- if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
21
- jQuery.error( "Invalid XML: " + data );
22
- }
23
- return xml;
24
- };
25
-
26
- return jQuery.parseXML;
27
-
28
- });
@@ -1,64 +0,0 @@
1
- define([
2
- "../core",
3
- "../ajax"
4
- ], function( jQuery ) {
5
-
6
- // Install script dataType
7
- jQuery.ajaxSetup({
8
- accepts: {
9
- script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
10
- },
11
- contents: {
12
- script: /(?:java|ecma)script/
13
- },
14
- converters: {
15
- "text script": function( text ) {
16
- jQuery.globalEval( text );
17
- return text;
18
- }
19
- }
20
- });
21
-
22
- // Handle cache's special case and crossDomain
23
- jQuery.ajaxPrefilter( "script", function( s ) {
24
- if ( s.cache === undefined ) {
25
- s.cache = false;
26
- }
27
- if ( s.crossDomain ) {
28
- s.type = "GET";
29
- }
30
- });
31
-
32
- // Bind script tag hack transport
33
- jQuery.ajaxTransport( "script", function( s ) {
34
- // This transport only deals with cross domain requests
35
- if ( s.crossDomain ) {
36
- var script, callback;
37
- return {
38
- send: function( _, complete ) {
39
- script = jQuery("<script>").prop({
40
- async: true,
41
- charset: s.scriptCharset,
42
- src: s.url
43
- }).on(
44
- "load error",
45
- callback = function( evt ) {
46
- script.remove();
47
- callback = null;
48
- if ( evt ) {
49
- complete( evt.type === "error" ? 404 : 200, evt.type );
50
- }
51
- }
52
- );
53
- document.head.appendChild( script[ 0 ] );
54
- },
55
- abort: function() {
56
- if ( callback ) {
57
- callback();
58
- }
59
- }
60
- };
61
- }
62
- });
63
-
64
- });
@@ -1,5 +0,0 @@
1
- define([
2
- "../../core"
3
- ], function( jQuery ) {
4
- return jQuery.now();
5
- });
@@ -1,3 +0,0 @@
1
- define(function() {
2
- return (/\?/);
3
- });
@@ -1,136 +0,0 @@
1
- define([
2
- "../core",
3
- "../var/support",
4
- "../ajax"
5
- ], function( jQuery, support ) {
6
-
7
- jQuery.ajaxSettings.xhr = function() {
8
- try {
9
- return new XMLHttpRequest();
10
- } catch( e ) {}
11
- };
12
-
13
- var xhrId = 0,
14
- xhrCallbacks = {},
15
- xhrSuccessStatus = {
16
- // file protocol always yields status code 0, assume 200
17
- 0: 200,
18
- // Support: IE9
19
- // #1450: sometimes IE returns 1223 when it should be 204
20
- 1223: 204
21
- },
22
- xhrSupported = jQuery.ajaxSettings.xhr();
23
-
24
- // Support: IE9
25
- // Open requests must be manually aborted on unload (#5280)
26
- // See https://support.microsoft.com/kb/2856746 for more info
27
- if ( window.attachEvent ) {
28
- window.attachEvent( "onunload", function() {
29
- for ( var key in xhrCallbacks ) {
30
- xhrCallbacks[ key ]();
31
- }
32
- });
33
- }
34
-
35
- support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
36
- support.ajax = xhrSupported = !!xhrSupported;
37
-
38
- jQuery.ajaxTransport(function( options ) {
39
- var callback;
40
-
41
- // Cross domain only allowed if supported through XMLHttpRequest
42
- if ( support.cors || xhrSupported && !options.crossDomain ) {
43
- return {
44
- send: function( headers, complete ) {
45
- var i,
46
- xhr = options.xhr(),
47
- id = ++xhrId;
48
-
49
- xhr.open( options.type, options.url, options.async, options.username, options.password );
50
-
51
- // Apply custom fields if provided
52
- if ( options.xhrFields ) {
53
- for ( i in options.xhrFields ) {
54
- xhr[ i ] = options.xhrFields[ i ];
55
- }
56
- }
57
-
58
- // Override mime type if needed
59
- if ( options.mimeType && xhr.overrideMimeType ) {
60
- xhr.overrideMimeType( options.mimeType );
61
- }
62
-
63
- // X-Requested-With header
64
- // For cross-domain requests, seeing as conditions for a preflight are
65
- // akin to a jigsaw puzzle, we simply never set it to be sure.
66
- // (it can always be set on a per-request basis or even using ajaxSetup)
67
- // For same-domain requests, won't change header if already provided.
68
- if ( !options.crossDomain && !headers["X-Requested-With"] ) {
69
- headers["X-Requested-With"] = "XMLHttpRequest";
70
- }
71
-
72
- // Set headers
73
- for ( i in headers ) {
74
- xhr.setRequestHeader( i, headers[ i ] );
75
- }
76
-
77
- // Callback
78
- callback = function( type ) {
79
- return function() {
80
- if ( callback ) {
81
- delete xhrCallbacks[ id ];
82
- callback = xhr.onload = xhr.onerror = null;
83
-
84
- if ( type === "abort" ) {
85
- xhr.abort();
86
- } else if ( type === "error" ) {
87
- complete(
88
- // file: protocol always yields status 0; see #8605, #14207
89
- xhr.status,
90
- xhr.statusText
91
- );
92
- } else {
93
- complete(
94
- xhrSuccessStatus[ xhr.status ] || xhr.status,
95
- xhr.statusText,
96
- // Support: IE9
97
- // Accessing binary-data responseText throws an exception
98
- // (#11426)
99
- typeof xhr.responseText === "string" ? {
100
- text: xhr.responseText
101
- } : undefined,
102
- xhr.getAllResponseHeaders()
103
- );
104
- }
105
- }
106
- };
107
- };
108
-
109
- // Listen to events
110
- xhr.onload = callback();
111
- xhr.onerror = callback("error");
112
-
113
- // Create the abort callback
114
- callback = xhrCallbacks[ id ] = callback("abort");
115
-
116
- try {
117
- // Do send the request (this may raise an exception)
118
- xhr.send( options.hasContent && options.data || null );
119
- } catch ( e ) {
120
- // #14683: Only rethrow if this hasn't been notified as an error yet
121
- if ( callback ) {
122
- throw e;
123
- }
124
- }
125
- },
126
-
127
- abort: function() {
128
- if ( callback ) {
129
- callback();
130
- }
131
- }
132
- };
133
- }
134
- });
135
-
136
- });
@@ -1,11 +0,0 @@
1
- define([
2
- "./core",
3
- "./attributes/attr",
4
- "./attributes/prop",
5
- "./attributes/classes",
6
- "./attributes/val"
7
- ], function( jQuery ) {
8
-
9
- // Return jQuery for attributes-only inclusion
10
- return jQuery;
11
- });
@@ -1,141 +0,0 @@
1
- define([
2
- "../core",
3
- "../var/rnotwhite",
4
- "../var/strundefined",
5
- "../core/access",
6
- "./support",
7
- "../selector"
8
- ], function( jQuery, rnotwhite, strundefined, access, support ) {
9
-
10
- var nodeHook, boolHook,
11
- attrHandle = jQuery.expr.attrHandle;
12
-
13
- jQuery.fn.extend({
14
- attr: function( name, value ) {
15
- return access( this, jQuery.attr, name, value, arguments.length > 1 );
16
- },
17
-
18
- removeAttr: function( name ) {
19
- return this.each(function() {
20
- jQuery.removeAttr( this, name );
21
- });
22
- }
23
- });
24
-
25
- jQuery.extend({
26
- attr: function( elem, name, value ) {
27
- var hooks, ret,
28
- nType = elem.nodeType;
29
-
30
- // don't get/set attributes on text, comment and attribute nodes
31
- if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
32
- return;
33
- }
34
-
35
- // Fallback to prop when attributes are not supported
36
- if ( typeof elem.getAttribute === strundefined ) {
37
- return jQuery.prop( elem, name, value );
38
- }
39
-
40
- // All attributes are lowercase
41
- // Grab necessary hook if one is defined
42
- if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
43
- name = name.toLowerCase();
44
- hooks = jQuery.attrHooks[ name ] ||
45
- ( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook );
46
- }
47
-
48
- if ( value !== undefined ) {
49
-
50
- if ( value === null ) {
51
- jQuery.removeAttr( elem, name );
52
-
53
- } else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
54
- return ret;
55
-
56
- } else {
57
- elem.setAttribute( name, value + "" );
58
- return value;
59
- }
60
-
61
- } else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
62
- return ret;
63
-
64
- } else {
65
- ret = jQuery.find.attr( elem, name );
66
-
67
- // Non-existent attributes return null, we normalize to undefined
68
- return ret == null ?
69
- undefined :
70
- ret;
71
- }
72
- },
73
-
74
- removeAttr: function( elem, value ) {
75
- var name, propName,
76
- i = 0,
77
- attrNames = value && value.match( rnotwhite );
78
-
79
- if ( attrNames && elem.nodeType === 1 ) {
80
- while ( (name = attrNames[i++]) ) {
81
- propName = jQuery.propFix[ name ] || name;
82
-
83
- // Boolean attributes get special treatment (#10870)
84
- if ( jQuery.expr.match.bool.test( name ) ) {
85
- // Set corresponding property to false
86
- elem[ propName ] = false;
87
- }
88
-
89
- elem.removeAttribute( name );
90
- }
91
- }
92
- },
93
-
94
- attrHooks: {
95
- type: {
96
- set: function( elem, value ) {
97
- if ( !support.radioValue && value === "radio" &&
98
- jQuery.nodeName( elem, "input" ) ) {
99
- var val = elem.value;
100
- elem.setAttribute( "type", value );
101
- if ( val ) {
102
- elem.value = val;
103
- }
104
- return value;
105
- }
106
- }
107
- }
108
- }
109
- });
110
-
111
- // Hooks for boolean attributes
112
- boolHook = {
113
- set: function( elem, value, name ) {
114
- if ( value === false ) {
115
- // Remove boolean attributes when set to false
116
- jQuery.removeAttr( elem, name );
117
- } else {
118
- elem.setAttribute( name, name );
119
- }
120
- return name;
121
- }
122
- };
123
- jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
124
- var getter = attrHandle[ name ] || jQuery.find.attr;
125
-
126
- attrHandle[ name ] = function( elem, name, isXML ) {
127
- var ret, handle;
128
- if ( !isXML ) {
129
- // Avoid an infinite loop by temporarily removing this function from the getter
130
- handle = attrHandle[ name ];
131
- attrHandle[ name ] = ret;
132
- ret = getter( elem, name, isXML ) != null ?
133
- name.toLowerCase() :
134
- null;
135
- attrHandle[ name ] = handle;
136
- }
137
- return ret;
138
- };
139
- });
140
-
141
- });