chromium/third_party/blink/web_tests/fast/dom/HTMLObjectElement/vspace-hspace-as-number.html

<p>This test makes sure that HTMLObjectElement.vspace and HTMLObjectElement.hspace are exposed as numbers instead of strings, per the DOM Level 2 HTML spec: http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-9893177</p>

<object id="object" data="" vspace="10" hspace="20"></object>

<div id="results">FAILURE</div>

<script type="text/javascript">
var object = document.getElementById("object");
var resultsDiv = document.getElementById("results");
if (typeof(object.vspace) != "number") {
  resultsDiv.innerHTML += "FAILURE HTMLObjectElement.vspace is not a number, rather: " + typeof(object.vspace)
} else if (typeof(object.hspace) != "number") {
  resultsDiv.innerHTML += "FAILURE HTMLObjectElement.hspace is not a number, rather: " + typeof(object.hspace)
} else {
  resultsDiv.innerHTML = "SUCCESS!";
}
</script>