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

Commit

Permalink
No-default properties are now expressed as undefined on publish, …
Browse files Browse the repository at this point in the history
…not as empty objects
  • Loading branch information
Scott J. Miles committed Jul 24, 2014
1 parent 448959f commit 1a67a4c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/html/publish-attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,21 @@
<script>
var assert = chai.assert;
document.addEventListener('polymer-ready', function() {

// tests publishAttributes

assert.deepEqual(
XFoo.prototype.publish,
{Foo: {}, baz: {}}, 1);
{Foo: undefined, baz: undefined}, 1);
assert.deepEqual(
XBar.prototype.publish,
{Foo: {}, baz: {}, Bar: {}}, 2);
{Foo: undefined, baz: undefined, Bar: undefined}, 2);
assert.deepEqual(
XZot.prototype.publish,
{Foo: {}, baz: {}, Bar: {}, zot: 3}, 3);
{Foo: undefined, baz: undefined, Bar: undefined, zot: 3}, 3);
assert.deepEqual(
XSquid.prototype.publish,
{Foo: {}, baz: 13, Bar: {}, zot: 5, squid: 7}, 4);
{Foo: undefined, baz: 13, Bar: undefined, zot: 5, squid: 7}, 4);

// tests publishProperties

Expand Down

0 comments on commit 1a67a4c

Please sign in to comment.