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

Unified Diff: LayoutTests/cssom/cssfloat-cssom.html

Issue 1288623005: Make cssFloat an enumerable property of CSSStyleDeclaration (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make cssFloat an enumerable property of CSSStyleDeclaration Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/virtual/stable/webexposed/css-properties-as-js-properties-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/cssom/cssfloat-cssom.html
diff --git a/LayoutTests/cssom/cssfloat-cssom.html b/LayoutTests/cssom/cssfloat-cssom.html
new file mode 100644
index 0000000000000000000000000000000000000000..fb5e3afcf50f3b3e688c701ac50bee9dd1783a39
--- /dev/null
+++ b/LayoutTests/cssom/cssfloat-cssom.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<script src="../../LayoutTests/resources/testharness.js"></script>
+<script src="../../LayoutTests/resources/testharnessreport.js"></script>
+
+<div id="target"></div>
+
+<script>
+addEventListener("load", function() {
+ test(function() {
+ assert_true('cssFloat' in getComputedStyle(target), 'cssFloat is in CSSStyleDeclaration');
+ assert_equals(target.style.cssFloat, '');
+ target.style.cssFloat = 'right';
+ assert_equals(target.style.cssFloat, 'right');
+
+ var CSSXGetComputedStyleQueries = 566;
+ assert_false(internals.isUseCounted(document, CSSXGetComputedStyleQueries));
+ }, 'Testing CSSFloat');
+}, false);
+</script>
« no previous file with comments | « no previous file | LayoutTests/virtual/stable/webexposed/css-properties-as-js-properties-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698