public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37d7cb8
)
Add tests for typeof evaluation
author
Roman Bataev
<roman.bataev@gmail.com>
Thu, 4 Apr 2013 02:34:19 +0000
(22:34 -0400)
committer
Roman Bataev
<roman.bataev@gmail.com>
Thu, 4 Apr 2013 02:34:19 +0000
(22:34 -0400)
test/compress/typeof.js
[new file with mode: 0644]
patch
|
blob
diff --git a/test/compress/typeof.js
b/test/compress/typeof.js
new file mode 100644
(file)
index 0000000..
cefdd43
--- /dev/null
+++ b/
test/compress/typeof.js
@@ -0,0
+1,25
@@
+typeof_evaluation: {
+ options = {
+ evaluate: true
+ };
+ input: {
+ a = typeof 1;
+ b = typeof 'test';
+ c = typeof [];
+ d = typeof {};
+ e = typeof /./;
+ f = typeof false;
+ g = typeof function(){};
+ h = typeof undefined;
+ }
+ expect: {
+ a='number';
+ b='string';
+ c=typeof[];
+ d=typeof{};
+ e=typeof/./;
+ f='boolean';
+ g='function';
+ h='undefined';
+ }
+}