Remove unecessary delete calls in test cleanup. (#4174)

This commit is contained in:
Monica Kozbial
2020-08-13 10:56:49 -07:00
committed by GitHub
parent 68528c2887
commit 2568305c57
2 changed files with 0 additions and 7 deletions

View File

@@ -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);

View File

@@ -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">' +