@@ -758,7 +758,29 @@ await EvaluateOnCallFrameAndCheck(id,
758758 ( "EvaluateNonStaticClassWithStaticFields.StaticProperty1" , TString ( "StaticProperty1" ) ) ,
759759 ( "EvaluateNonStaticClassWithStaticFields.StaticPropertyWithError" , TString ( "System.Exception: not implemented" ) ) ) ;
760760 } ) ;
761-
761+
762+ [ Fact ]
763+ public async Task EvaluateStaticClassesFromDifferentNamespaceInDifferentFrames ( ) => await CheckInspectLocalsAtBreakpointSite (
764+ "DebuggerTestsV2.EvaluateStaticClass" , "Run" , 1 , "Run" ,
765+ "window.setTimeout(function() { invoke_static_method ('[debugger-test] DebuggerTests.EvaluateMethodTestsClass:EvaluateMethods'); })" ,
766+ wait_for_event_fn : async ( pause_location ) =>
767+ {
768+ var id_top = pause_location [ "callFrames" ] [ 0 ] [ "callFrameId" ] . Value < string > ( ) ;
769+ var frame = pause_location [ "callFrames" ] [ 0 ] ;
770+
771+ await EvaluateOnCallFrameAndCheck ( id_top ,
772+ ( "EvaluateStaticClass.StaticField1" , TNumber ( 20 ) ) ,
773+ ( "EvaluateStaticClass.StaticProperty1" , TString ( "StaticProperty2" ) ) ,
774+ ( "EvaluateStaticClass.StaticPropertyWithError" , TString ( "System.Exception: not implemented" ) ) ) ;
775+
776+ var id_second = pause_location [ "callFrames" ] [ 1 ] [ "callFrameId" ] . Value < string > ( ) ;
777+
778+ await EvaluateOnCallFrameAndCheck ( id_second ,
779+ ( "EvaluateStaticClass.StaticField1" , TNumber ( 10 ) ) ,
780+ ( "EvaluateStaticClass.StaticProperty1" , TString ( "StaticProperty1" ) ) ,
781+ ( "EvaluateStaticClass.StaticPropertyWithError" , TString ( "System.Exception: not implemented" ) ) ) ;
782+ } ) ;
783+
762784 [ Fact ]
763785 public async Task EvaluateStaticClassInvalidField ( ) => await CheckInspectLocalsAtBreakpointSite (
764786 "DebuggerTests.EvaluateMethodTestsClass/TestEvaluate" , "run" , 9 , "run" ,
0 commit comments