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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/CSSStyleDeclaration/script-tests/css-properties-case-sensitive.js

Issue 1607653002: Remove getComputedStyle(e).css* properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary property name prefix check Created 4 years, 11 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 description( 1 description(
2 'This test checks that access to the CSS float property via JavaScript propertie s on DOM elements is case sensitive. The use of .CssFloat is deprecated and will be removed in M50.' 2 'This test checks that access to the CSS float property via JavaScript propertie s on DOM elements is case sensitive.'
3 ); 3 );
4 4
5 var element = document.createElement('a'); 5 var element = document.createElement('a');
6 element.style.float = 'left'; 6 element.style.float = 'left';
7 7
8 debug('normal cases'); 8 debug('normal cases');
9 debug(''); 9 debug('');
10 10
11 shouldBe("element.style.float", "'left'"); 11 shouldBe("element.style.float", "'left'");
12 shouldBeUndefined("element.style.Float"); 12 shouldBeUndefined("element.style.Float");
13 13
14 debug(''); 14 debug('');
15 debug('"css" prefix'); 15 debug('"css" prefix');
16 debug(''); 16 debug('');
17 17
18 shouldBe("element.style.cssFloat", "'left'"); 18 shouldBe("element.style.cssFloat", "'left'");
19 shouldBe("element.style.CssFloat", "'left'"); 19 shouldBeUndefined("element.style.CssFloat");
20 shouldBeUndefined("element.style.Cssfloat"); 20 shouldBeUndefined("element.style.Cssfloat");
21 shouldBeUndefined("element.style.cssfloat"); 21 shouldBeUndefined("element.style.cssfloat");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698