summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/create/15.2.3.5-4-271.js
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2018-02-15 15:33:45 -0500
committerLeo Balter <leonardo.balter@gmail.com>2018-02-15 15:33:45 -0500
commita61b9cd671f3378c4078c0a58dd8b8be073f8cef (patch)
tree1d0e29b2fc9477ac9956c904ea051e29c3b13f2d /test/built-ins/Object/create/15.2.3.5-4-271.js
parentdedd68020b222fe79fb4fe9f84465e842e4ca61f (diff)
downloadqtdeclarative-testsuites-a61b9cd671f3378c4078c0a58dd8b8be073f8cef.tar.gz
built-ins/Object/*: make all indentation consistent (depth & character) (#1432)
Diffstat (limited to 'test/built-ins/Object/create/15.2.3.5-4-271.js')
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-271.js56
1 files changed, 28 insertions, 28 deletions
diff --git a/test/built-ins/Object/create/15.2.3.5-4-271.js b/test/built-ins/Object/create/15.2.3.5-4-271.js
index 81e2538bb..53a136202 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-271.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-271.js
@@ -9,34 +9,34 @@ description: >
(8.10.5 step 8.a)
---*/
- var data1 = "data";
- var data2 = "data";
-
- var proto = {};
- Object.defineProperty(proto, "set", {
- get: function () {
- return function (value) {
- data2 = value;
- };
- }
- });
-
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var child = new ConstructFun();
- Object.defineProperty(child, "set", {
- value: function (value) {
- data1 = value;
- }
- });
-
- var newObj = Object.create({}, {
- prop: child
- });
-
- var hasProperty = newObj.hasOwnProperty("prop");
-
- newObj.prop = "overrideData";
+var data1 = "data";
+var data2 = "data";
+
+var proto = {};
+Object.defineProperty(proto, "set", {
+ get: function() {
+ return function(value) {
+ data2 = value;
+ };
+ }
+});
+
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var child = new ConstructFun();
+Object.defineProperty(child, "set", {
+ value: function(value) {
+ data1 = value;
+ }
+});
+
+var newObj = Object.create({}, {
+ prop: child
+});
+
+var hasProperty = newObj.hasOwnProperty("prop");
+
+newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data1, "overrideData", 'data1');