diff options
author | James Graham <james@hoppipolla.co.uk> | 2015-07-27 17:47:31 +0100 |
---|---|---|
committer | James Graham <james@hoppipolla.co.uk> | 2015-07-27 17:47:31 +0100 |
commit | df03062d626f485dd896ce9c4374dfce447dc657 (patch) | |
tree | a96bdde06c6cd88dd68bc5ef4de8277fc6250a60 /tests/wpt/css-tests/cssom-1_dev/xhtml1/cssom-cssText-serialize.xht | |
parent | 662c00a8109c49d4c57343156b774441f4f48640 (diff) | |
download | servo-df03062d626f485dd896ce9c4374dfce447dc657.tar.gz servo-df03062d626f485dd896ce9c4374dfce447dc657.zip |
Update CSS tests to revision 2baa72daab8bf37e3e910a9fd311a1eaa5b0f4a8
Diffstat (limited to 'tests/wpt/css-tests/cssom-1_dev/xhtml1/cssom-cssText-serialize.xht')
-rw-r--r-- | tests/wpt/css-tests/cssom-1_dev/xhtml1/cssom-cssText-serialize.xht | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/wpt/css-tests/cssom-1_dev/xhtml1/cssom-cssText-serialize.xht b/tests/wpt/css-tests/cssom-1_dev/xhtml1/cssom-cssText-serialize.xht new file mode 100644 index 00000000000..c4737cfb395 --- /dev/null +++ b/tests/wpt/css-tests/cssom-1_dev/xhtml1/cssom-cssText-serialize.xht @@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSSOM Parsing Test: getting cssText must return the result of serializing the CSS declaration blocks.</title> + <link href="mailto:paul.irish@gmail.com" rel="author" title="Paul Irish" /> + <link href="http://www.w3.org/TR/cssom/#the-cssstyledeclaration-interface" rel="help" /> + + <link href="http://trac.webkit.org/export/120528/trunk/LayoutTests/fast/css/cssText-cache.html" rel="source" /> + <meta content="dom" name="flags" /> + + <script src="/resources/testharness.js"></script> + <script src="/resources/testharnessreport.js"></script> + </head> + + <body> + <div id="log"></div> + + <div id="box"></div> + + <script> + + var style = document.getElementById('box').style; + + test(function(){ + + style.left = "10px"; + assert_equals(style.cssText, "left: 10px"); + style.right = "20px"; + assert_equals(style.cssText, "left: 10px; right: 20px;"); + + }, 'CSSStyleDeclaration cssText serializes declaration blocks.'); + + </script> + + + + +</body></html>
\ No newline at end of file |