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

Unified Diff: third_party/WebKit/LayoutTests/typedcssom/computedstyle/width.html

Issue 1849653003: Implement ComputedStylePropertyMap for Typed OM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@maps-inline
Patch Set: Update global-interface-listing Created 4 years, 9 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
Index: third_party/WebKit/LayoutTests/typedcssom/computedstyle/width.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/computedstyle/width.html b/third_party/WebKit/LayoutTests/typedcssom/computedstyle/width.html
new file mode 100644
index 0000000000000000000000000000000000000000..25a01445529f31200d9103dc5627cf595942e7f2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/typedcssom/computedstyle/width.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<script src='../../resources/testharness.js'></script>
+<script src='../../resources/testharnessreport.js'></script>
+
+<div id="testElement"></div>
+
+<script>
+
+var computedStyleMap = getComputedStyleMap(testElement);
+
+test(function() {
+ testElement.style.width = '10px';
+
+ assert_equals('10px', computedStyleMap.get('width').cssString);
+}, "Getting a simple width");
+
+test(function() {
+ testElement.style.width = '10px';
+
+ var result = computedStyleMap.getAll('width');
+ assert_equals(1, result.length);
+ assert_equals('10px', result[0].cssString);
+}, "getAll width");
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698