Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: polymer_0.5.4/bower_components/web-animations-js/test/js/apply-preserving-inline-style.js

Issue 895523005: Added Polymer 0.5.4 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 suite('apply-preserving-inline-style', function() { 1 suite('apply-preserving-inline-style', function() {
2 setup(function() { 2 setup(function() {
3 this.element = document.createElement('div'); 3 this.element = document.createElement('div');
4 ensureStyleIsPatched(this.element); 4 ensureStyleIsPatched(this.element);
5 this.style = this.element.style; 5 this.style = this.element.style;
6 document.documentElement.appendChild(this.element); 6 document.documentElement.appendChild(this.element);
7 }); 7 });
8 teardown(function() { 8 teardown(function() {
9 this.element.remove(); 9 this.element.remove();
10 }); 10 });
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 test('Patched cssText', function() { 63 test('Patched cssText', function() {
64 this.style._set('left', '100px'); 64 this.style._set('left', '100px');
65 assert.equal(this.style.length, 0); 65 assert.equal(this.style.length, 0);
66 this.style.setProperty('left', '0px'); 66 this.style.setProperty('left', '0px');
67 this.style.setProperty('background-color', 'rgb(1, 2, 3)'); 67 this.style.setProperty('background-color', 'rgb(1, 2, 3)');
68 assert.equal(this.style.length, 2); 68 assert.equal(this.style.length, 2);
69 this.style.cssText = 'top: 0px'; 69 this.style.cssText = 'top: 0px';
70 assert.equal(this.style.length, 1); 70 assert.equal(this.style.length, 1);
71 }); 71 });
72 }); 72 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698