mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Test .removeFolder().
This commit is contained in:
parent
76c80858c3
commit
59f685b018
@ -1187,6 +1187,20 @@ console.log(c2.__checkbox.getAttribute('checked'));
|
||||
|
||||
});
|
||||
|
||||
test('removeFolder', function() {
|
||||
|
||||
var gui = new GUI();
|
||||
|
||||
var f = gui.addFolder('Temporary folder');
|
||||
|
||||
ok($.contains(gui.domElement, f.domElement), "Now you see it");
|
||||
gui.removeFolder(f);
|
||||
|
||||
ok(!$.contains(gui.domElement, f.domElement), "Now you don't.");
|
||||
|
||||
gui.destroy();
|
||||
|
||||
});
|
||||
|
||||
test('min, max & step', function() {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user