1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/devtools/tilt/test/browser_tilt_utils03.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,18 @@ 1.4 +/* Any copyright is dedicated to the Public Domain. 1.5 + http://creativecommons.org/publicdomain/zero/1.0/ */ 1.6 +"use strict"; 1.7 + 1.8 +function test() { 1.9 + let dom = TiltUtils.DOM; 1.10 + 1.11 + is(dom.parentNode, null, 1.12 + "The parent node should not be initially set."); 1.13 + 1.14 + dom.parentNode = {}; 1.15 + ok(dom.parentNode, 1.16 + "The parent node should now be set."); 1.17 + 1.18 + TiltUtils.clearCache(); 1.19 + is(dom.parentNode, null, 1.20 + "The parent node should not be set after clearing the cache."); 1.21 +}