common_test.libraries.yml

Same filename and directory in other branches
  1. 9 core/modules/system/tests/modules/common_test/common_test.libraries.yml
  2. 8.9.x core/modules/system/tests/modules/common_test/common_test.libraries.yml
  3. 10 core/modules/system/tests/modules/common_test/common_test.libraries.yml
core/modules/system/tests/modules/common_test/common_test.libraries.yml

File

core/modules/system/tests/modules/common_test/common_test.libraries.yml

View source
  1. loadjs:
  2. version: 0.1
  3. js:
  4. assets/vendor/loadjs/loadjs.min.js: { }
  5. # Library to test CSS and JS file assets.
  6. files:
  7. js:
  8. foo.js: {}
  9. css:
  10. theme:
  11. bar.css: {}
  12. # Library to test external CSS and JS file assets.
  13. external:
  14. version: 1
  15. js:
  16. http://example.com/script.js: { type: external }
  17. css:
  18. theme:
  19. http://example.com/stylesheet.css: { type: external }
  20. # Library to test JS file asset attributes (both internal and external).
  21. js-attributes:
  22. version: 1
  23. js:
  24. deferred-internal.js: { attributes: { defer: true, bar: foo } }
  25. http://example.com/deferred-external.js:
  26. type: external
  27. attributes:
  28. foo: bar
  29. defer: true
  30. js-header:
  31. header: true
  32. js:
  33. header.js: {}
  34. dependencies:
  35. - core/drupal
  36. # Library to test setting cache = FALSE, to prevent aggregation.
  37. no-cache:
  38. js:
  39. nocache.js: { cache: false }
  40. order:
  41. js:
  42. weight_-3_1.js: { weight: -3 }
  43. weight_0_1.js: {}
  44. weight_0_2.js: {}
  45. weight_-8_1.js: { weight: -8 }
  46. weight_-8_2.js: { weight: -8 }
  47. weight_-8_3.js: { weight: -8 }
  48. http://example.com/weight_-5_1.js: { type: external, weight: -5 }
  49. weight_-8_4.js: { weight: -8 }
  50. weight_-3_2.js: { weight: -3 }
  51. weight_0_3.js: {}
  52. css:
  53. base:
  54. base_weight_0_1.js: {}
  55. base_weight_0_2.js: {}
  56. base_weight_-8_1.js: { weight: -8 }
  57. base_weight_-101_1.js: { weight: -101 }
  58. layout:
  59. layout_weight_0_1.js: {}
  60. layout_weight_0_2.js: {}
  61. layout_weight_-8_1.js: { weight: -8 }
  62. layout_weight_-101_1.js: { weight: -101 }
  63. component:
  64. component_weight_0_1.js: {}
  65. component_weight_0_2.js: {}
  66. component_weight_-8_1.js: { weight: -8}
  67. component_weight_-101_1.js: { weight: -101}
  68. state:
  69. state_weight_0_1.js: {}
  70. state_weight_0_2.js: {}
  71. state_weight_-8_1.js: { weight: -8}
  72. state_weight_-101_1.js: { weight: -101}
  73. theme:
  74. theme_weight_0_1.js: {}
  75. theme_weight_0_2.js: {}
  76. theme_weight_-8_1.js: { weight: -8}
  77. theme_weight_-101_1.js: { weight: -101}
  78. weight:
  79. css:
  80. theme:
  81. first.css: {}
  82. lighter.js: { weight: -1 }
  83. js:
  84. first.js: {}
  85. lighter.js: { weight: -1 }
  86. before-jquery.js: { weight: -21 }
  87. # Library to test hook_js_alter().
  88. hook_js_alter:
  89. version: VERSION
  90. js:
  91. alter.js: {}
  92. dependencies:
  93. - core/drupal.tableselect
  94. querystring:
  95. js:
  96. querystring.js?arg1=value1&arg2=value2: {}
  97. css:
  98. theme:
  99. querystring.css?arg1=value1&arg2=value2: {}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.