Skip to content
Snippets Groups Projects
Commit 9da8cb70 authored by gilbo's avatar gilbo
Browse files

Merge branch 'main' of gitlab.cs.washington.edu:cse493x-24sp/cse493x-24sp-tests

parents 248d4c4d c5ea853c
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,6 @@ Resize the window and set up the URL and web page:
>>> wbemocks.socket.respond_200(url, content)
>>> browser.set_parameters(WIDTH=800, HEIGHT=100,
... VSTEP=20, HSTEP=800, SCROLL_STEP=25)
>>> wbemocks.MockCanvas.hide_above(-20)
Since the h-step is equal to the width and the page contents is 10
letters, there should be 10 lines of text. Since each line is 20
......
......@@ -437,9 +437,8 @@ class MockCanvas:
cmd = "create_text: x={} y={} text={}".format(x, y, text)
self._draw(cmd)
if font is None:
y2 = y
else:
y2 = y + font.metrics("linespace")
font = MockFont(size=20)
y2 = y + font.metrics("linespace")
if self._allow("create_text", y2): print(cmd)
def pack(self, expand=None, fill=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment