rem: this.log.debug("saveTestSuite"); var cancelled = false; this.getTestSuite().tests.forEach(function(test) { if (cancelled) return; if (test.content && test.content.modified) { if (confirm("The test case is modified. Do you want to save this test case?")) { if (!this.getCurrentFormat().save(test.content)) { cancelled = true; } } else { cancelled = true; } } }, this); if (!cancelled) { if (this.getTestSuite().save()) { this.addRecentTestSuite(this.getTestSuite()); } } 
add: this._saveTestSuiteAs(function(testSuite) { return testSuite.save(false); }); 
context:     saveTestSuite: function() {        this.log.debug("saveTestSuite");        var cancelled = false;        this.getTestSuite().tests.forEach(function(test) {                if (cancelled) return;                if (test.content && test.content.modified) {                    if (confirm("The test case is modified. Do you want to save this test case?")) {                        if (!this.getCurrentFormat().save(test.content)) {                            cancelled = true;                        }                    } else {                        cancelled = true;                    }                }            }, this);        if (!cancelled) {            if (this.getTestSuite().save()) {                this.addRecentTestSuite(this.getTestSuite());            }        }    },
meta: 3428	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3428/5908478fc709e7d8b99fa3bb296f1c514c2d3893/application.js/buggy/src/content/application.js