mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,33 @@
|
|||
/* vim: set ft=javascript ts=2 et sw=2 tw=80: */
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
"use strict";
|
||||
|
||||
// Test that an invalid property still lets us display the rule view
|
||||
// Bug 1235603.
|
||||
|
||||
const TEST_URI = `
|
||||
<style>
|
||||
div {
|
||||
background: #fff;
|
||||
font-family: sans-serif;
|
||||
url(display-table.min.htc);
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div id="testid" class="testclass">Styled Node</div>
|
||||
</body>
|
||||
`;
|
||||
|
||||
add_task(function* () {
|
||||
yield addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI));
|
||||
|
||||
let {inspector, view} = yield openRuleView();
|
||||
yield selectNode("#testid", inspector);
|
||||
|
||||
is(view._elementStyle.rules.length, 2, "Should have 2 rules.");
|
||||
// Have to actually get the rule in order to ensure that the
|
||||
// elements were created.
|
||||
ok(getRuleViewRule(view, "div"), "Rule with div selector exists");
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue