Re-write duplicated assertions
The modified assertions targeted the property descriptor for the template object's first "cooked" value. The code immediately preceeding these statements asserts these values. Update the assertions to instead target the property descriptor for the template object's first "raw" value (which are otherwise untested). BUG= Review URL: https://codereview.chromium.org/1049523003 Cr-Commit-Position: refs/heads/master@{#27566}
This commit is contained in:
parent
4339480619
commit
3badfdcd50
1
AUTHORS
1
AUTHORS
@ -76,6 +76,7 @@ Maxim Mossienko <maxim.mossienko@gmail.com>
|
||||
Michael Lutz <michi@icosahedron.de>
|
||||
Michael Smith <mike@w3.org>
|
||||
Mike Gilbert <floppymaster@gmail.com>
|
||||
Mike Pennisi <mike@mikepennisi.com>
|
||||
Nicolas Antonius Ernst Leopold Maria Kaiser <nikai@nikai.net>
|
||||
Paolo Giarrusso <p.giarrusso@gmail.com>
|
||||
Patrick Gansterer <paroga@paroga.com>
|
||||
|
@ -305,9 +305,9 @@ var obj = {
|
||||
assertTrue(cooked0.enumerable);
|
||||
|
||||
var raw0 = Object.getOwnPropertyDescriptor(cs.raw, "0");
|
||||
assertFalse(cooked0.writable);
|
||||
assertFalse(cooked0.configurable);
|
||||
assertTrue(cooked0.enumerable);
|
||||
assertFalse(raw0.writable);
|
||||
assertFalse(raw0.configurable);
|
||||
assertTrue(raw0.enumerable);
|
||||
|
||||
var length = Object.getOwnPropertyDescriptor(cs, "length");
|
||||
assertFalse(length.writable);
|
||||
|
Loading…
Reference in New Issue
Block a user