mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 06:08:24 +02:00
18 lines
461 B
JavaScript
18 lines
461 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
"use strict";
|
|
|
|
function test() {
|
|
let dom = TiltUtils.DOM;
|
|
|
|
is(dom.parentNode, null,
|
|
"The parent node should not be initially set.");
|
|
|
|
dom.parentNode = {};
|
|
ok(dom.parentNode,
|
|
"The parent node should now be set.");
|
|
|
|
TiltUtils.clearCache();
|
|
is(dom.parentNode, null,
|
|
"The parent node should not be set after clearing the cache.");
|
|
}
|