Skip to content

Commit

Permalink
fix some grid tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonykoerber authored and Shuwen Qian committed May 6, 2016
1 parent 3a27a8a commit f688ab9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/strand-grid-column.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
it("should toggle the sortOrder when clicked", function() {
var column = document.querySelector("#testcolumn");
column.sortOrder.should.equal(column.SORT_DEFAULT);
column.toggleSort();
column._toggleSort();
column.sortOrder.should.equal(column.SORT_ASCENDING);
column.toggleSort();
column._toggleSort();
column.sortOrder.should.equal(column.SORT_DESCENDING);
});

Expand Down
3 changes: 2 additions & 1 deletion test/strand-grid-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
it("should have columns", function(done) {
var item = document.querySelector("#testitem");
item.scope = item.scope || {};
item.set('scope.columns', [{field: "foo", width: "50%"}, {field: "bar", width: "50%"}]);
item.set('scope._columns', [{field: "foo", width: "50%"}, {field: "bar", width: "50%"}]);

flush(function(){
var columns = Polymer.dom(item.root).querySelectorAll("#columnContainer ._mm_column");
columns.length.should.equal(2);
Expand Down

0 comments on commit f688ab9

Please sign in to comment.