@@ -639,10 +639,6 @@ suite('Events', function () {
639639 type : 'create' ,
640640 group : '' ,
641641 blockId : thisObj . block . id ,
642- xml :
643- '<block xmlns="https://developers.google.com/blockly/xml"' +
644- ' type="simple_test_block" id="testBlockId1" x="0" y="0">' +
645- '</block>' ,
646642 ids : [ thisObj . block . id ] ,
647643 json : {
648644 'type' : 'simple_test_block' ,
@@ -660,10 +656,6 @@ suite('Events', function () {
660656 type : 'create' ,
661657 group : '' ,
662658 blockId : thisObj . shadowBlock . id ,
663- xml :
664- '<shadow xmlns="https://developers.google.com/blockly/xml"' +
665- ' type="simple_test_block" id="testBlockId2" x="0" y="0">' +
666- '</shadow>' ,
667659 ids : [ thisObj . shadowBlock . id ] ,
668660 json : {
669661 'type' : 'simple_test_block' ,
@@ -682,10 +674,6 @@ suite('Events', function () {
682674 type : 'delete' ,
683675 group : '' ,
684676 blockId : thisObj . block . id ,
685- oldXml :
686- '<block xmlns="https://developers.google.com/blockly/xml"' +
687- ' type="simple_test_block" id="testBlockId1" x="0" y="0">' +
688- '</block>' ,
689677 ids : [ thisObj . block . id ] ,
690678 wasShadow : false ,
691679 oldJson : {
@@ -704,10 +692,6 @@ suite('Events', function () {
704692 type : 'delete' ,
705693 group : '' ,
706694 blockId : thisObj . shadowBlock . id ,
707- oldXml :
708- '<shadow xmlns="https://developers.google.com/blockly/xml"' +
709- ' type="simple_test_block" id="testBlockId2" x="0" y="0">' +
710- '</shadow>' ,
711695 ids : [ thisObj . shadowBlock . id ] ,
712696 wasShadow : true ,
713697 oldJson : {
@@ -765,11 +749,6 @@ suite('Events', function () {
765749 type : 'comment_create' ,
766750 group : '' ,
767751 commentId : thisObj . comment . id ,
768- // TODO: Before merging, is this a dumb change detector?
769- xml : Blockly . Xml . domToText (
770- Blockly . Xml . saveWorkspaceComment ( thisObj . comment ) ,
771- { addCoordinates : true } ,
772- ) ,
773752 json : {
774753 height : 100 ,
775754 width : 120 ,
@@ -788,11 +767,6 @@ suite('Events', function () {
788767 type : 'comment_delete' ,
789768 group : '' ,
790769 commentId : thisObj . comment . id ,
791- // TODO: Before merging, is this a dumb change detector?
792- xml : Blockly . Xml . domToText (
793- Blockly . Xml . saveWorkspaceComment ( thisObj . comment ) ,
794- { addCoordinates : true } ,
795- ) ,
796770 json : {
797771 height : 100 ,
798772 width : 120 ,
@@ -1405,7 +1379,6 @@ suite('Events', function () {
14051379 const block = workspaceSvg . newBlock ( '' ) ;
14061380 block . initSvg ( ) ;
14071381 block . setCommentText ( 'test comment' ) ;
1408- const expectedOldXml = Blockly . Xml . blockToDomWithXY ( block ) ;
14091382 const expectedId = block . id ;
14101383
14111384 // Run all queued events.
@@ -1426,7 +1399,7 @@ suite('Events', function () {
14261399 this . eventsFireSpy ,
14271400 0 ,
14281401 Blockly . Events . BlockDelete ,
1429- { oldXml : expectedOldXml , group : '' } ,
1402+ { group : '' } ,
14301403 workspaceSvg . id ,
14311404 expectedId ,
14321405 ) ;
0 commit comments