Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cse493x-24sp-tests
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cse493x-24sp
cse493x-24sp-tests
Commits
9da8cb70
Commit
9da8cb70
authored
11 months ago
by
gilbo
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of gitlab.cs.washington.edu:cse493x-24sp/cse493x-24sp-tests
parents
248d4c4d
c5ea853c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/chapter2-exercise-scrollbar-tests.md
+0
-1
0 additions, 1 deletion
tests/chapter2-exercise-scrollbar-tests.md
tests/wbemocks.py
+2
-3
2 additions, 3 deletions
tests/wbemocks.py
with
2 additions
and
4 deletions
tests/chapter2-exercise-scrollbar-tests.md
+
0
−
1
View file @
9da8cb70
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
tests/wbemocks.py
+
2
−
3
View file @
9da8cb70
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment