summaryrefslogtreecommitdiff
path: root/test/built-ins/Object
diff options
context:
space:
mode:
authorjugglinmike <mike@mikepennisi.com>2017-05-01 12:04:05 -0400
committerLeo Balter <leonardo.balter@gmail.com>2017-05-01 12:04:05 -0400
commit74954bfa915136c7998f8a0d9ca40b885075d409 (patch)
tree61c91d90c8f612dad18bffee1e59720f734998c9 /test/built-ins/Object
parent7bb4cd8f417f9568521d62d282a7aec9b46699c1 (diff)
downloadqtdeclarative-testsuites-74954bfa915136c7998f8a0d9ca40b885075d409.tar.gz
Introduce automated validation for test format (#994)
This script is intended to identify common test file formatting errors prior to their acceptance into the project. It is designed to support future extensions for additional validation rules.
Diffstat (limited to 'test/built-ins/Object')
-rw-r--r--test/built-ins/Object/assign/Override.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/built-ins/Object/assign/Override.js b/test/built-ins/Object/assign/Override.js
index 0a7d69438..426713ef3 100644
--- a/test/built-ins/Object/assign/Override.js
+++ b/test/built-ins/Object/assign/Override.js
@@ -8,13 +8,13 @@ es6id: 19.1.2.1.5.c
//"a" will be an property of the final object and the value should be 1
var target = {a:1};
-/*---
+/*
"1a2c3" have own enumerable properties, so it Should be wrapped to objects;
{b:6} is an object,should be assigned to final object.
undefined and null should be ignored;
125 is a number,it cannot has own enumerable properties;
{a:"c"},{a:5} will override property a, the value should be 5.
----*/
+*/
var result = Object.assign(target,"1a2c3",{a:"c"},undefined,{b:6},null,125,{a:5});
assert.sameValue(Object.keys(result).length, 7 , "The length should be 7 in the final object.");