aboutsummaryrefslogtreecommitdiff
path: root/node_modules/adm-zip/test
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/adm-zip/test')
-rw-r--r--node_modules/adm-zip/test/assets/attributes_test.zipbin0 -> 4189 bytes
-rw-r--r--node_modules/adm-zip/test/assets/attributes_test/New folder/hidden.txt17
-rw-r--r--node_modules/adm-zip/test/assets/attributes_test/New folder/hidden_readonly.txt17
-rw-r--r--node_modules/adm-zip/test/assets/attributes_test/New folder/readonly.txt17
-rw-r--r--node_modules/adm-zip/test/assets/attributes_test/New folder/somefile.txt17
-rw-r--r--node_modules/adm-zip/test/assets/attributes_test/asd/New Text Document.txt0
-rw-r--r--node_modules/adm-zip/test/assets/attributes_test/blank file.txt0
-rw-r--r--node_modules/adm-zip/test/assets/fast.zipbin0 -> 4194 bytes
-rw-r--r--node_modules/adm-zip/test/assets/fastest.zipbin0 -> 4194 bytes
-rw-r--r--node_modules/adm-zip/test/assets/linux_arc.zipbin0 -> 415 bytes
-rw-r--r--node_modules/adm-zip/test/assets/maximum.zipbin0 -> 4086 bytes
-rw-r--r--node_modules/adm-zip/test/assets/normal.zipbin0 -> 4170 bytes
-rw-r--r--node_modules/adm-zip/test/assets/store.zipbin0 -> 5878 bytes
-rw-r--r--node_modules/adm-zip/test/assets/ultra.zipbin0 -> 4086 bytes
-rw-r--r--node_modules/adm-zip/test/index.js5
15 files changed, 73 insertions, 0 deletions
diff --git a/node_modules/adm-zip/test/assets/attributes_test.zip b/node_modules/adm-zip/test/assets/attributes_test.zip
new file mode 100644
index 000000000..d57bfc075
--- /dev/null
+++ b/node_modules/adm-zip/test/assets/attributes_test.zip
Binary files differ
diff --git a/node_modules/adm-zip/test/assets/attributes_test/New folder/hidden.txt b/node_modules/adm-zip/test/assets/attributes_test/New folder/hidden.txt
new file mode 100644
index 000000000..3c3ca551d
--- /dev/null
+++ b/node_modules/adm-zip/test/assets/attributes_test/New folder/hidden.txt
@@ -0,0 +1,17 @@
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE. \ No newline at end of file
diff --git a/node_modules/adm-zip/test/assets/attributes_test/New folder/hidden_readonly.txt b/node_modules/adm-zip/test/assets/attributes_test/New folder/hidden_readonly.txt
new file mode 100644
index 000000000..3c3ca551d
--- /dev/null
+++ b/node_modules/adm-zip/test/assets/attributes_test/New folder/hidden_readonly.txt
@@ -0,0 +1,17 @@
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE. \ No newline at end of file
diff --git a/node_modules/adm-zip/test/assets/attributes_test/New folder/readonly.txt b/node_modules/adm-zip/test/assets/attributes_test/New folder/readonly.txt
new file mode 100644
index 000000000..3c3ca551d
--- /dev/null
+++ b/node_modules/adm-zip/test/assets/attributes_test/New folder/readonly.txt
@@ -0,0 +1,17 @@
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE. \ No newline at end of file
diff --git a/node_modules/adm-zip/test/assets/attributes_test/New folder/somefile.txt b/node_modules/adm-zip/test/assets/attributes_test/New folder/somefile.txt
new file mode 100644
index 000000000..3c3ca551d
--- /dev/null
+++ b/node_modules/adm-zip/test/assets/attributes_test/New folder/somefile.txt
@@ -0,0 +1,17 @@
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE. \ No newline at end of file
diff --git a/node_modules/adm-zip/test/assets/attributes_test/asd/New Text Document.txt b/node_modules/adm-zip/test/assets/attributes_test/asd/New Text Document.txt
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/node_modules/adm-zip/test/assets/attributes_test/asd/New Text Document.txt
diff --git a/node_modules/adm-zip/test/assets/attributes_test/blank file.txt b/node_modules/adm-zip/test/assets/attributes_test/blank file.txt
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/node_modules/adm-zip/test/assets/attributes_test/blank file.txt
diff --git a/node_modules/adm-zip/test/assets/fast.zip b/node_modules/adm-zip/test/assets/fast.zip
new file mode 100644
index 000000000..f4ed17b98
--- /dev/null
+++ b/node_modules/adm-zip/test/assets/fast.zip
Binary files differ
diff --git a/node_modules/adm-zip/test/assets/fastest.zip b/node_modules/adm-zip/test/assets/fastest.zip
new file mode 100644
index 000000000..f4ed17b98
--- /dev/null
+++ b/node_modules/adm-zip/test/assets/fastest.zip
Binary files differ
diff --git a/node_modules/adm-zip/test/assets/linux_arc.zip b/node_modules/adm-zip/test/assets/linux_arc.zip
new file mode 100644
index 000000000..188eccbe8
--- /dev/null
+++ b/node_modules/adm-zip/test/assets/linux_arc.zip
Binary files differ
diff --git a/node_modules/adm-zip/test/assets/maximum.zip b/node_modules/adm-zip/test/assets/maximum.zip
new file mode 100644
index 000000000..86a8ec776
--- /dev/null
+++ b/node_modules/adm-zip/test/assets/maximum.zip
Binary files differ
diff --git a/node_modules/adm-zip/test/assets/normal.zip b/node_modules/adm-zip/test/assets/normal.zip
new file mode 100644
index 000000000..b4602c94e
--- /dev/null
+++ b/node_modules/adm-zip/test/assets/normal.zip
Binary files differ
diff --git a/node_modules/adm-zip/test/assets/store.zip b/node_modules/adm-zip/test/assets/store.zip
new file mode 100644
index 000000000..e2add30dc
--- /dev/null
+++ b/node_modules/adm-zip/test/assets/store.zip
Binary files differ
diff --git a/node_modules/adm-zip/test/assets/ultra.zip b/node_modules/adm-zip/test/assets/ultra.zip
new file mode 100644
index 000000000..86a8ec776
--- /dev/null
+++ b/node_modules/adm-zip/test/assets/ultra.zip
Binary files differ
diff --git a/node_modules/adm-zip/test/index.js b/node_modules/adm-zip/test/index.js
new file mode 100644
index 000000000..70acb5176
--- /dev/null
+++ b/node_modules/adm-zip/test/index.js
@@ -0,0 +1,5 @@
+var Attr = require("../util").FileAttr,
+ Zip = require("../adm-zip"),
+ fs = require("fs");
+
+//zip.addLocalFile("./test/readonly.txt");