mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
Remove unecessary delete calls in test cleanup. (#4174)
This commit is contained in:
@@ -127,9 +127,6 @@ suite('Image Fields', function() {
|
||||
console.log('on click');
|
||||
};
|
||||
});
|
||||
teardown(function() {
|
||||
delete this.onClick;
|
||||
});
|
||||
test('JS Constructor', function() {
|
||||
var field = new Blockly.FieldImage('src', 10, 10, null, this.onClick);
|
||||
chai.assert.equal(field.clickHandler_, this.onClick);
|
||||
|
||||
@@ -73,7 +73,6 @@ suite('InsertionMarkers', function() {
|
||||
delete Blockly.JavaScript['stack_block'];
|
||||
delete Blockly.JavaScript['row_block'];
|
||||
delete Blockly.JavaScript['statement_block'];
|
||||
delete this.assertGen;
|
||||
});
|
||||
test('Marker Surrounds', function() {
|
||||
var xml = Blockly.Xml.textToDom(
|
||||
@@ -214,9 +213,6 @@ suite('InsertionMarkers', function() {
|
||||
chai.assert.equal(xml, expectXml);
|
||||
};
|
||||
});
|
||||
teardown(function() {
|
||||
delete this.assertXml;
|
||||
});
|
||||
test('Marker Surrounds', function() {
|
||||
var xml = Blockly.Xml.textToDom(
|
||||
'<xml xmlns="https://developers.google.com/blockly/xml">' +
|
||||
|
||||
Reference in New Issue
Block a user