mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
Fix fromJson_ to fromJson in tests
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user