common_test.libraries.yml

Same filename and directory in other branches
  1. 11.x core/modules/system/tests/modules/common_test/common_test.libraries.yml
  2. 10 core/modules/system/tests/modules/common_test/common_test.libraries.yml
  3. 9 core/modules/system/tests/modules/common_test/common_test.libraries.yml
  4. 8.9.x 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 CSS and JS file assets excluded from aggregation.
  13. no-preprocess:
  14. js:
  15. no_preprocess.js: { preprocess: false }
  16. css:
  17. theme:
  18. no_preprocess.css: { preprocess: false }
  19. # Library to test external CSS and JS file assets.
  20. external:
  21. version: 1
  22. js:
  23. http://example.com/script.js: { type: external }
  24. css:
  25. theme:
  26. http://example.com/stylesheet.css: { type: external }
  27. # Library to test JS file asset attributes (both internal and external).
  28. js-attributes:
  29. version: 1
  30. js:
  31. deferred-internal.js: { attributes: { defer: true, bar: foo } }
  32. http://example.com/deferred-external.js:
  33. type: external
  34. attributes:
  35. foo: bar
  36. defer: true
  37. js-header:
  38. header: true
  39. js:
  40. header.js: {}
  41. dependencies:
  42. - core/drupal
  43. # Library to test setting cache = FALSE, to prevent aggregation.
  44. no-cache:
  45. js:
  46. no_cache.js: { cache: false }
  47. order:
  48. js:
  49. weight_-3_1.js: { weight: -3 }
  50. weight_0_1.js: {}
  51. weight_0_2.js: {}
  52. weight_-8_1.js: { weight: -8 }
  53. weight_-8_2.js: { weight: -8 }
  54. weight_-8_3.js: { weight: -8 }
  55. http://example.com/weight_-5_1.js: { type: external, weight: -5 }
  56. weight_-8_4.js: { weight: -8 }
  57. weight_-3_2.js: { weight: -3 }
  58. weight_0_3.js: {}
  59. css:
  60. base:
  61. base_weight_0_1.js: {}
  62. base_weight_0_2.js: {}
  63. base_weight_-8_1.js: { weight: -8 }
  64. base_weight_-101_1.js: { weight: -101 }
  65. layout:
  66. layout_weight_0_1.js: {}
  67. layout_weight_0_2.js: {}
  68. layout_weight_-8_1.js: { weight: -8 }
  69. layout_weight_-101_1.js: { weight: -101 }
  70. component:
  71. component_weight_0_1.js: {}
  72. component_weight_0_2.js: {}
  73. component_weight_-8_1.js: { weight: -8}
  74. component_weight_-101_1.js: { weight: -101}
  75. state:
  76. state_weight_0_1.js: {}
  77. state_weight_0_2.js: {}
  78. state_weight_-8_1.js: { weight: -8}
  79. state_weight_-101_1.js: { weight: -101}
  80. theme:
  81. theme_weight_0_1.js: {}
  82. theme_weight_0_2.js: {}
  83. theme_weight_-8_1.js: { weight: -8}
  84. theme_weight_-101_1.js: { weight: -101}
  85. weight:
  86. css:
  87. theme:
  88. first.css: {}
  89. lighter.js: { weight: -1 }
  90. js:
  91. first.js: {}
  92. lighter.js: { weight: -1 }
  93. before-jquery.js: { weight: -21 }
  94. before_main:
  95. js:
  96. before_main.js: {}
  97. before:
  98. - common_test/main
  99. main:
  100. js:
  101. main.js: {}
  102. after_main:
  103. js:
  104. after_main.js: {}
  105. after:
  106. - common_test/main
  107. # Library to test hook_js_alter().
  108. hook_js_alter:
  109. version: VERSION
  110. js:
  111. alter.js: {}
  112. dependencies:
  113. - core/drupal.tableselect
  114. querystring:
  115. js:
  116. querystring.js?arg1=value1&arg2=value2: {}
  117. css:
  118. theme:
  119. querystring.css?arg1=value1&arg2=value2: {}

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