function switchToElementsTab() {
        test.showPanel("elements").then(function() {
            setTimeout(switchToScriptsTab, 0);
        });
    }
Tests that scripts are not duplicaed on Scripts tab switch.