Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 1a67a4c

Browse files
author
Scott J. Miles
committed
No-default properties are now expressed as undefined on publish, not as empty objects
1 parent 448959f commit 1a67a4c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/html/publish-attributes.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,21 @@
5454
<script>
5555
var assert = chai.assert;
5656
document.addEventListener('polymer-ready', function() {
57+
5758
// tests publishAttributes
59+
5860
assert.deepEqual(
5961
XFoo.prototype.publish,
60-
{Foo: {}, baz: {}}, 1);
62+
{Foo: undefined, baz: undefined}, 1);
6163
assert.deepEqual(
6264
XBar.prototype.publish,
63-
{Foo: {}, baz: {}, Bar: {}}, 2);
65+
{Foo: undefined, baz: undefined, Bar: undefined}, 2);
6466
assert.deepEqual(
6567
XZot.prototype.publish,
66-
{Foo: {}, baz: {}, Bar: {}, zot: 3}, 3);
68+
{Foo: undefined, baz: undefined, Bar: undefined, zot: 3}, 3);
6769
assert.deepEqual(
6870
XSquid.prototype.publish,
69-
{Foo: {}, baz: 13, Bar: {}, zot: 5, squid: 7}, 4);
71+
{Foo: undefined, baz: 13, Bar: undefined, zot: 5, squid: 7}, 4);
7072

7173
// tests publishProperties
7274

0 commit comments

Comments
 (0)