summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/DataView/getter-name.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/non262/DataView/getter-name.js')
-rw-r--r--js/src/tests/non262/DataView/getter-name.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/tests/non262/DataView/getter-name.js b/js/src/tests/non262/DataView/getter-name.js
new file mode 100644
index 0000000000..600b7da8b3
--- /dev/null
+++ b/js/src/tests/non262/DataView/getter-name.js
@@ -0,0 +1,11 @@
+var BUGNUMBER = 1180290;
+var summary = 'DataView getters should have get prefix';
+
+print(BUGNUMBER + ": " + summary);
+
+assertEq(Object.getOwnPropertyDescriptor(DataView.prototype, "buffer").get.name, "get buffer");
+assertEq(Object.getOwnPropertyDescriptor(DataView.prototype, "byteLength").get.name, "get byteLength");
+assertEq(Object.getOwnPropertyDescriptor(DataView.prototype, "byteOffset").get.name, "get byteOffset");
+
+if (typeof reportCompare === 'function')
+ reportCompare(true, true);