Fix fromJson_ to fromJson in tests

This commit is contained in:
Mark Gibson
2018-02-07 18:30:22 +00:00
parent 2308ae8c22
commit 28d3d68b62
2 changed files with 5 additions and 5 deletions

View File

@@ -39,6 +39,6 @@ function test_fieldangle_constructor() {
}
function test_fieldangle_fromJson() {
assertEquals(Blockly.FieldAngle.fromJson_({}).getValue(), '0');
assertEquals(Blockly.FieldAngle.fromJson_({ angle: 1 }).getValue(), '1');
assertEquals(Blockly.FieldAngle.fromJson({}).getValue(), '0');
assertEquals(Blockly.FieldAngle.fromJson({ angle: 1 }).getValue(), '1');
}

View File

@@ -63,11 +63,11 @@ function test_fieldnumber_constructor() {
}
function test_fieldnumber_fromJson() {
assertEquals(Blockly.FieldNumber.fromJson_({}).getValue(), '0');
assertEquals(Blockly.FieldNumber.fromJson_({ value: 1 }).getValue(), '1');
assertEquals(Blockly.FieldNumber.fromJson({}).getValue(), '0');
assertEquals(Blockly.FieldNumber.fromJson({ value: 1 }).getValue(), '1');
// All options
var field = Blockly.FieldNumber.fromJson_({
var field = Blockly.FieldNumber.fromJson({
value: 0,
min: -128,
max: 127,