Jdlrobson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/260163

Change subject: DONOTMERGE: For testing
......................................................................

DONOTMERGE: For testing

Change-Id: I57c83dee5ffe615878d0fcca908e25f3809d8252
---
M resources/Resources.php
A resources/test1.js
A resources/test2.js
3 files changed, 23 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/63/260163/1

diff --git a/resources/Resources.php b/resources/Resources.php
index b51f68d..714fc36 100644
--- a/resources/Resources.php
+++ b/resources/Resources.php
@@ -2125,6 +2125,18 @@
                ),
        ),
 
+       'test1' => array(
+               'targets' => array( 'desktop', 'mobile' ),
+               'dependencies' => array(
+                       'test2',
+               ),
+               'scripts' => 'resources/test1.js',
+       ),
+       'test2' => array(
+               'targets' => array( 'desktop', 'mobile' ),
+               'scripts' => 'resources/test2.js',
+       ),
+
        /* OOjs UI */
        // WARNING: OOjs-UI is NOT TESTED with older browsers and is likely to 
break
        // if loaded in browsers that don't support ES5
diff --git a/resources/test1.js b/resources/test1.js
new file mode 100644
index 0000000..2e7a3a4
--- /dev/null
+++ b/resources/test1.js
@@ -0,0 +1,3 @@
+module.exports = function test() {
+       console.log( 'Test function called!' );
+};
diff --git a/resources/test2.js b/resources/test2.js
new file mode 100644
index 0000000..c18efd8
--- /dev/null
+++ b/resources/test2.js
@@ -0,0 +1,8 @@
+module.exports = {
+       foo: function () {
+               console.log( 'foo function called!' );
+       },
+       bar: function () {
+               console.log( 'bar function called!' );
+       }
+};

-- 
To view, visit https://gerrit.wikimedia.org/r/260163
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I57c83dee5ffe615878d0fcca908e25f3809d8252
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to