HotSwap_Interfaces.txt 705 B

123456789101112131415161718192021222324252627282930313233
  1. # This tests hot adding an unreified interface, hot adding interface methods,
  2. # and calling hot-added methods
  3. ShowFile("src/HotSwap.bf")
  4. GotoText("//HotStart_Interfaces")
  5. ToggleBreakpoint()
  6. RunWithCompiling()
  7. StepOver()
  8. AssertEvalEquals("hot.IHotA()", "ERROR:'Unable to find address for method, possibly due to compiler optimizations.'")
  9. ToggleCommentAt("HotTester_TestIHotA")
  10. Compile()
  11. StepInto()
  12. StepOver()
  13. StepOver()
  14. AssertEvalEquals("val", "15")
  15. AssertEvalEquals("hot.IHotA()", "15")
  16. ToggleCommentAt("IHot_IHotB")
  17. ToggleCommentAt("HotTester_TestIHotB")
  18. Compile()
  19. Stop()
  20. # Steps out
  21. StepOver()
  22. StepInto()
  23. StepOver()
  24. StepOver()
  25. AssertEvalEquals("val", "16")
  26. AssertEvalEquals("hot.IHotB()", "16")