layout/inspector/tests/test_bug1046140.html
author Nicholas Nethercote <nnethercote@mozilla.com>
Tue, 07 Oct 2014 23:29:07 -0700
changeset 234277 c20e7032aa3b31b897ebe32b7c15e82d7bf480b2
parent 219937 367a559c6b3b575098191405b866be9bf49be245
permissions -rw-r--r--
Bug 1077230 - Enable the DMD test on Mac 10.8. r=glandium.

<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1046140
-->
<head>
  <meta charset="utf-8">
  <title>Test for Bug 1046140</title>
  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  <script type="application/javascript">

  var utils = SpecialPowers.Cc["@mozilla.org/inspector/dom-utils;1"]
    .getService(SpecialPowers.Ci.inIDOMUtils);

  try {
    utils.getSubpropertiesForCSSProperty("--foo");
    ok(false, "expected an exception");
  } catch(e) {
    ok(true, "getSubpropertiesForCSSProperty throws when passed a CSS variable");
  }

  </script>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1046140">Mozilla Bug 1046140</a>
<p id="display"></p>
<div id="content" style="display: none">

</div>
<pre id="test">
</pre>
</body>
</html>