summaryrefslogtreecommitdiff
path: root/www/wiki/tests/phpunit/data/resourceloader
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/tests/phpunit/data/resourceloader')
-rw-r--r--www/wiki/tests/phpunit/data/resourceloader/abc.gifbin0 -> 74 bytes
-rw-r--r--www/wiki/tests/phpunit/data/resourceloader/def.svg6
-rw-r--r--www/wiki/tests/phpunit/data/resourceloader/def_variantize.svg6
-rw-r--r--www/wiki/tests/phpunit/data/resourceloader/ghi.svg4
-rw-r--r--www/wiki/tests/phpunit/data/resourceloader/ghi_massage.svg4
-rw-r--r--www/wiki/tests/phpunit/data/resourceloader/jkl.svg4
-rw-r--r--www/wiki/tests/phpunit/data/resourceloader/mno-ltr.svg10
-rw-r--r--www/wiki/tests/phpunit/data/resourceloader/mno-rtl.svg10
-rw-r--r--www/wiki/tests/phpunit/data/resourceloader/oouiimagemodule/apex/icons.json6
-rw-r--r--www/wiki/tests/phpunit/data/resourceloader/oouiimagemodule/apex/images/icons/stu.svg6
-rw-r--r--www/wiki/tests/phpunit/data/resourceloader/oouiimagemodule/wikimediaui/icons.json6
-rw-r--r--www/wiki/tests/phpunit/data/resourceloader/oouiimagemodule/wikimediaui/images/icons/stu.svg6
-rw-r--r--www/wiki/tests/phpunit/data/resourceloader/pqr-a.svg6
-rw-r--r--www/wiki/tests/phpunit/data/resourceloader/pqr-b.svg6
-rw-r--r--www/wiki/tests/phpunit/data/resourceloader/pqr-f.svg6
-rw-r--r--www/wiki/tests/phpunit/data/resourceloader/script-comment.js3
-rw-r--r--www/wiki/tests/phpunit/data/resourceloader/script-nosemi.js2
17 files changed, 91 insertions, 0 deletions
diff --git a/www/wiki/tests/phpunit/data/resourceloader/abc.gif b/www/wiki/tests/phpunit/data/resourceloader/abc.gif
new file mode 100644
index 00000000..5f454ca1
--- /dev/null
+++ b/www/wiki/tests/phpunit/data/resourceloader/abc.gif
Binary files differ
diff --git a/www/wiki/tests/phpunit/data/resourceloader/def.svg b/www/wiki/tests/phpunit/data/resourceloader/def.svg
new file mode 100644
index 00000000..6ad79174
--- /dev/null
+++ b/www/wiki/tests/phpunit/data/resourceloader/def.svg
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+ <g id="remove">
+ <path id="trash-can" d="M12 10h-1v6h1v-6zm-2 0h-1v6h1v-6zm4 0h-1v6h1v-6zm0-4v-1h-5v1h-3v3h1v7.966l1 1.031v-.074.077h6.984l.016-.018v.015l1-1.031v-7.966h1v-3h-3zm1 11h-7v-8h7v8zm1-9h-9v-1h9v1z"/>
+ </g>
+</svg>
diff --git a/www/wiki/tests/phpunit/data/resourceloader/def_variantize.svg b/www/wiki/tests/phpunit/data/resourceloader/def_variantize.svg
new file mode 100644
index 00000000..bcbe8712
--- /dev/null
+++ b/www/wiki/tests/phpunit/data/resourceloader/def_variantize.svg
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="red">
+ <g xmlns:default="http://www.w3.org/2000/svg" id="remove">
+ <path id="trash-can" d="M12 10h-1v6h1v-6zm-2 0h-1v6h1v-6zm4 0h-1v6h1v-6zm0-4v-1h-5v1h-3v3h1v7.966l1 1.031v-.074.077h6.984l.016-.018v.015l1-1.031v-7.966h1v-3h-3zm1 11h-7v-8h7v8zm1-9h-9v-1h9v1z"/>
+ </g>
+</g></svg>
diff --git a/www/wiki/tests/phpunit/data/resourceloader/ghi.svg b/www/wiki/tests/phpunit/data/resourceloader/ghi.svg
new file mode 100644
index 00000000..02b4e387
--- /dev/null
+++ b/www/wiki/tests/phpunit/data/resourceloader/ghi.svg
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+ <path d="M16.5 13.1l-8.9 8.9c-.8-.8-.8-2 0-2.8l6.1-6.1-6-6.1c-.8-.8-.8-2 0-2.8l8.8 8.9z" id="path108"/>
+</svg>
diff --git a/www/wiki/tests/phpunit/data/resourceloader/ghi_massage.svg b/www/wiki/tests/phpunit/data/resourceloader/ghi_massage.svg
new file mode 100644
index 00000000..bbd1a8d6
--- /dev/null
+++ b/www/wiki/tests/phpunit/data/resourceloader/ghi_massage.svg
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+ <path d="M 16.5 13.1 l -8.9 8.9 c -0.8 -0.8 -0.8 -2 0 -2.8 l 6.1 -6.1 -6 -6.1 c -0.8 -0.8 -0.8 -2 0 -2.8 l 8.8 8.9 z" id="path108"/>
+</svg>
diff --git a/www/wiki/tests/phpunit/data/resourceloader/jkl.svg b/www/wiki/tests/phpunit/data/resourceloader/jkl.svg
new file mode 100644
index 00000000..f31ec095
--- /dev/null
+++ b/www/wiki/tests/phpunit/data/resourceloader/jkl.svg
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+ <path d="M7 13.1l8.9 8.9c.8-.8.8-2 0-2.8l-6.1-6.1 6-6.1c.8-.8.8-2 0-2.8l-8.8 8.9z"/>
+</svg>
diff --git a/www/wiki/tests/phpunit/data/resourceloader/mno-ltr.svg b/www/wiki/tests/phpunit/data/resourceloader/mno-ltr.svg
new file mode 100644
index 00000000..bb2545c5
--- /dev/null
+++ b/www/wiki/tests/phpunit/data/resourceloader/mno-ltr.svg
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+ <g id="help">
+ <path id="circle" d="M12.001 2.085c-5.478 0-9.916 4.438-9.916 9.916 0 5.476 4.438 9.914 9.916 9.914 5.476 0 9.914-4.438 9.914-9.914 0-5.478-4.438-9.916-9.914-9.916zm.001 18c-4.465 0-8.084-3.619-8.084-8.083 0-4.465 3.619-8.084 8.084-8.084 4.464 0 8.083 3.619 8.083 8.084 0 4.464-3.619 8.083-8.083 8.083z"/>
+ <g id="question-mark">
+ <path id="top" d="M11.766 6.688c-2.5 0-3.219 2.188-3.219 2.188l1.411.854s.298-.791.901-1.229c.516-.375 1.625-.625 2.219.125.701.885-.17 1.587-1.078 2.719-.953 1.186-1 3.655-1 3.655h1.969s.135-2.318 1.041-3.381c.603-.707 1.443-1.338 1.443-2.494s-1.187-2.437-3.687-2.437z"/>
+ <path id="bottom" d="M11 16h2v2h-2z"/>
+ </g>
+ </g>
+</svg>
diff --git a/www/wiki/tests/phpunit/data/resourceloader/mno-rtl.svg b/www/wiki/tests/phpunit/data/resourceloader/mno-rtl.svg
new file mode 100644
index 00000000..255ae95b
--- /dev/null
+++ b/www/wiki/tests/phpunit/data/resourceloader/mno-rtl.svg
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+ <g id="help">
+ <path id="circle" d="M12.001 2.085c-5.478 0-9.916 4.438-9.916 9.916 0 5.476 4.438 9.914 9.916 9.914 5.476 0 9.914-4.438 9.914-9.914 0-5.478-4.438-9.916-9.914-9.916zm.001 18c-4.465 0-8.084-3.619-8.084-8.083 0-4.465 3.619-8.084 8.084-8.084 4.464 0 8.083 3.619 8.083 8.084 0 4.464-3.619 8.083-8.083 8.083z"/>
+ <g id="question-mark" transform="translate(24, 0) scale(-1, 1)">
+ <path id="top" d="M11.766 6.688c-2.5 0-3.219 2.188-3.219 2.188l1.411.854s.298-.791.901-1.229c.516-.375 1.625-.625 2.219.125.701.885-.17 1.587-1.078 2.719-.953 1.186-1 3.655-1 3.655h1.969s.135-2.318 1.041-3.381c.603-.707 1.443-1.338 1.443-2.494s-1.187-2.437-3.687-2.437z"/>
+ <path id="bottom" d="M11 16h2v2h-2z"/>
+ </g>
+ </g>
+</svg>
diff --git a/www/wiki/tests/phpunit/data/resourceloader/oouiimagemodule/apex/icons.json b/www/wiki/tests/phpunit/data/resourceloader/oouiimagemodule/apex/icons.json
new file mode 100644
index 00000000..fdb4d127
--- /dev/null
+++ b/www/wiki/tests/phpunit/data/resourceloader/oouiimagemodule/apex/icons.json
@@ -0,0 +1,6 @@
+{
+ "prefix": "oo-ui-icon",
+ "images": {
+ "stu": { "file": "images/icons/stu.svg" }
+ }
+}
diff --git a/www/wiki/tests/phpunit/data/resourceloader/oouiimagemodule/apex/images/icons/stu.svg b/www/wiki/tests/phpunit/data/resourceloader/oouiimagemodule/apex/images/icons/stu.svg
new file mode 100644
index 00000000..27f14df1
--- /dev/null
+++ b/www/wiki/tests/phpunit/data/resourceloader/oouiimagemodule/apex/images/icons/stu.svg
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+ <g id="stu">
+ <path id="stu-apex" d="M18.87 18.375l-3.987-3.99-.286-.17a5.774 5.774 0 0 0 1.082-3.372C15.67 7.616 13.06 5 9.84 5A5.843 5.843 0 0 0 4 10.844a5.84 5.84 0 0 0 5.842 5.842c1.26 0 2.423-.403 3.377-1.08l.16.286 3.99 3.987c.32.31.91.24 1.33-.18.41-.42.49-1.01.17-1.33zM9.837 14.56a3.72 3.72 0 0 1-3.718-3.717c0-2.05 1.67-3.72 3.72-3.72s3.72 1.668 3.72 3.72a3.722 3.722 0 0 1-3.72 3.718z"/>
+ </g>
+</svg>
diff --git a/www/wiki/tests/phpunit/data/resourceloader/oouiimagemodule/wikimediaui/icons.json b/www/wiki/tests/phpunit/data/resourceloader/oouiimagemodule/wikimediaui/icons.json
new file mode 100644
index 00000000..fdb4d127
--- /dev/null
+++ b/www/wiki/tests/phpunit/data/resourceloader/oouiimagemodule/wikimediaui/icons.json
@@ -0,0 +1,6 @@
+{
+ "prefix": "oo-ui-icon",
+ "images": {
+ "stu": { "file": "images/icons/stu.svg" }
+ }
+}
diff --git a/www/wiki/tests/phpunit/data/resourceloader/oouiimagemodule/wikimediaui/images/icons/stu.svg b/www/wiki/tests/phpunit/data/resourceloader/oouiimagemodule/wikimediaui/images/icons/stu.svg
new file mode 100644
index 00000000..fcaaa8d2
--- /dev/null
+++ b/www/wiki/tests/phpunit/data/resourceloader/oouiimagemodule/wikimediaui/images/icons/stu.svg
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+ <g id="stu">
+ <path id="stu-wikimediaui" d="M10.5 4a6.5 6.5 0 1 0 2.844 12.344L16 19c1.4 1.4 2.5 1.5 4 0l-4.438-4.438A6.426 6.426 0 0 0 17 10.5 6.5 6.5 0 0 0 10.5 4zm0 2a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9z"/>
+ </g>
+</svg>
diff --git a/www/wiki/tests/phpunit/data/resourceloader/pqr-a.svg b/www/wiki/tests/phpunit/data/resourceloader/pqr-a.svg
new file mode 100644
index 00000000..4b828779
--- /dev/null
+++ b/www/wiki/tests/phpunit/data/resourceloader/pqr-a.svg
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+ <g id="bold-a">
+ <path d="M16 18h3l-5-12h-3l-5 12h3l1.25-3h4.5l1.25 3zm-4.917-5l1.417-3.4 1.417 3.4h-2.834z"/>
+ </g>
+</svg>
diff --git a/www/wiki/tests/phpunit/data/resourceloader/pqr-b.svg b/www/wiki/tests/phpunit/data/resourceloader/pqr-b.svg
new file mode 100644
index 00000000..4f648203
--- /dev/null
+++ b/www/wiki/tests/phpunit/data/resourceloader/pqr-b.svg
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+ <g id="bold-b">
+ <path id="b" d="M7 18h6c2 0 4-1 4-3 0-1.064.011-1.975-1.989-3 2-.975 1.989-1.935 1.989-3 0-2-2-3-4-3h-6v12zm7-8c0 1.001 0 1-2 1h-2v-3h2c2 0 2 0 2 1v1zm-2 6h-2v-3h2c2 0 2 0 2 1v1s0 1-2 1z"/>
+ </g>
+</svg>
diff --git a/www/wiki/tests/phpunit/data/resourceloader/pqr-f.svg b/www/wiki/tests/phpunit/data/resourceloader/pqr-f.svg
new file mode 100644
index 00000000..357d2e5d
--- /dev/null
+++ b/www/wiki/tests/phpunit/data/resourceloader/pqr-f.svg
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+ <g id="bold-f">
+ <path id="f" d="M16 8v-2h-8v12h3v-5h4v-2h-4v-3z"/>
+ </g>
+</svg>
diff --git a/www/wiki/tests/phpunit/data/resourceloader/script-comment.js b/www/wiki/tests/phpunit/data/resourceloader/script-comment.js
new file mode 100644
index 00000000..46b60f9c
--- /dev/null
+++ b/www/wiki/tests/phpunit/data/resourceloader/script-comment.js
@@ -0,0 +1,3 @@
+/* eslint-disable */
+mw.foo()
+// mw.bar();
diff --git a/www/wiki/tests/phpunit/data/resourceloader/script-nosemi.js b/www/wiki/tests/phpunit/data/resourceloader/script-nosemi.js
new file mode 100644
index 00000000..2b1550fa
--- /dev/null
+++ b/www/wiki/tests/phpunit/data/resourceloader/script-nosemi.js
@@ -0,0 +1,2 @@
+/* eslint-disable */
+mw.foo()