mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
21 lines
492 B
JavaScript
21 lines
492 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
/*global ok, is, TiltUtils */
|
|
"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.");
|
|
}
|