summaryrefslogtreecommitdiff
path: root/testing/resources/javascript/globals_expected.txt
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-02-19 15:58:19 -0800
committerTom Sepez <tsepez@chromium.org>2015-02-19 15:58:19 -0800
commitdce5730e8335749734a3195d16e247c40d6fef3e (patch)
tree5dc7d5b34c4bcd9a1dc4b3decf606a3751289a8d /testing/resources/javascript/globals_expected.txt
parenta96cc9bffc200d4ea83c2a283ca3ac0b72e9a588 (diff)
downloadpdfium-dce5730e8335749734a3195d16e247c40d6fef3e.tar.xz
Add test for PDF's JS "global".
Exercises a separate code path that stores some JS objects outside of JS. Needed before re-writing some other portions of the JS_Defines.h code. R=jam@chromium.org Review URL: https://codereview.chromium.org/943783002
Diffstat (limited to 'testing/resources/javascript/globals_expected.txt')
-rw-r--r--testing/resources/javascript/globals_expected.txt105
1 files changed, 105 insertions, 0 deletions
diff --git a/testing/resources/javascript/globals_expected.txt b/testing/resources/javascript/globals_expected.txt
new file mode 100644
index 0000000000..ddaa00cd09
--- /dev/null
+++ b/testing/resources/javascript/globals_expected.txt
@@ -0,0 +1,105 @@
+Alert: ************ Initial State ************
+Alert: Enumerable Globals:
+Alert: setPersistent = function setPersistent() { [native code] }, own property = true
+Alert: Expected Globals:
+Alert: true_var = undefined
+Alert: false_var = undefined
+Alert: zero_var = undefined
+Alert: number_var = undefined
+Alert: string_var = undefined
+Alert: object_var = undefined
+Alert: null_var = undefined
+Alert: undefined_var = undefined
+Alert: ************ After Setup ************
+Alert: Enumerable Globals:
+Alert: setPersistent = function setPersistent() { [native code] }, own property = true
+Alert: true_var = true, own property = true
+Alert: false_var = false, own property = true
+Alert: zero_var = 0, own property = true
+Alert: number_var = -3.918, own property = true
+Alert: string_var = This is a string, own property = true
+Alert: object_var = [object Object], own property = true
+Alert: null_var = null, own property = true
+Alert: undefined_var = undefined, own property = true
+Alert: Expected Globals:
+Alert: true_var = true
+Alert: false_var = false
+Alert: zero_var = 0
+Alert: number_var = -3.918
+Alert: string_var = This is a string
+Alert: object_var = [object Object]
+Alert: red
+Alert: green
+Alert: blue
+Alert: null_var = null
+Alert: undefined_var = undefined
+Alert: ************ After Deletion ************
+Alert: Enumerable Globals:
+Alert: setPersistent = function setPersistent() { [native code] }, own property = true
+Alert: Expected Globals:
+Alert: true_var = undefined
+Alert: false_var = undefined
+Alert: zero_var = undefined
+Alert: number_var = undefined
+Alert: string_var = undefined
+Alert: object_var = undefined
+Alert: null_var = undefined
+Alert: undefined_var = undefined
+Alert: ************ After Setup and Persist false ************
+Alert: Enumerable Globals:
+Alert: setPersistent = function setPersistent() { [native code] }, own property = true
+Alert: true_var = true, own property = true
+Alert: false_var = false, own property = true
+Alert: zero_var = 0, own property = true
+Alert: number_var = -3.918, own property = true
+Alert: string_var = This is a string, own property = true
+Alert: object_var = [object Object], own property = true
+Alert: null_var = null, own property = true
+Alert: undefined_var = undefined, own property = true
+Alert: Expected Globals:
+Alert: true_var = true
+Alert: false_var = false
+Alert: zero_var = 0
+Alert: number_var = -3.918
+Alert: string_var = This is a string
+Alert: object_var = [object Object]
+Alert: red
+Alert: green
+Alert: blue
+Alert: null_var = null
+Alert: undefined_var = undefined
+Alert: ************ After Delete and Persist ************
+Alert: Enumerable Globals:
+Alert: setPersistent = function setPersistent() { [native code] }, own property = true
+Alert: Expected Globals:
+Alert: true_var = undefined
+Alert: false_var = undefined
+Alert: zero_var = undefined
+Alert: number_var = undefined
+Alert: string_var = undefined
+Alert: object_var = undefined
+Alert: null_var = undefined
+Alert: undefined_var = undefined
+Alert: ************ After Setup and Persist true ************
+Alert: Enumerable Globals:
+Alert: setPersistent = function setPersistent() { [native code] }, own property = true
+Alert: true_var = true, own property = true
+Alert: false_var = false, own property = true
+Alert: zero_var = 0, own property = true
+Alert: number_var = -3.918, own property = true
+Alert: string_var = This is a string, own property = true
+Alert: object_var = [object Object], own property = true
+Alert: null_var = null, own property = true
+Alert: undefined_var = undefined, own property = true
+Alert: Expected Globals:
+Alert: true_var = true
+Alert: false_var = false
+Alert: zero_var = 0
+Alert: number_var = -3.918
+Alert: string_var = This is a string
+Alert: object_var = [object Object]
+Alert: red
+Alert: green
+Alert: blue
+Alert: null_var = null
+Alert: undefined_var = undefined