"Normal scale" replaces "A4 scale" in the Page menu
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
56ab259cd4
commit
46a82bf3b7
4 files changed
+9
-9
No files matched your search
@@ -1512,7 +1512,7 @@ class EndToEndTest(unittest.TestCase):
|
||||
self.assertGreater(menu[1], button[3])
|
||||
self.assertLess(menu[2], firefox.run("return window.innerWidth;"))
|
||||
items = firefox.run("return [...document.querySelectorAll('#page_menu .menu_item')].filter((e) => !e.hidden).map((e) => e.textContent.trim());")
|
||||
self.assertEqual(items, ["Fit to the window", "A4 scale", "Expand to the window",
|
||||
self.assertEqual(items, ["Fit to the window", "Normal scale", "Expand to the window",
|
||||
"Shrink to the contents", "Extend the page while writing"])
|
||||
# Two grey titles, over the first two sections, in the muted colour.
|
||||
self.assertEqual(firefox.run("return [...document.querySelectorAll('#page_menu .menu_title')].map((e) => e.textContent);"),
|
||||
@@ -1958,7 +1958,7 @@ class EndToEndTest(unittest.TestCase):
|
||||
self.assertEqual(doubled["strokes"], before["strokes"])
|
||||
firefox.run(CTRL_DRAG, 0.5, 0.3, 0.5, 0.3, 104)
|
||||
self.assertAlmostEqual(zoom()["width"], before["width"], delta=2)
|
||||
# The host's Fit and A4 reach the guest, who then fits the page to
|
||||
# The host's Fit and Normal scale reach the guest, who then fits the page to
|
||||
# the guest's own window; the guest's own Fit stays the guest's.
|
||||
firefox.switch_to(student_tab)
|
||||
firefox.run("""
|
||||
@@ -2048,7 +2048,7 @@ class EndToEndTest(unittest.TestCase):
|
||||
lambda text: f'data-base="{sheet["width"]} {sheet["height"]} {sheet["left"]} {sheet["top"]}"' in text,
|
||||
"the shrunk sheet in the student's file")
|
||||
firefox.switch_to(teacher_tab)
|
||||
# "A4" shows the shrunk page at the scale a new page has: a blank
|
||||
# "Normal scale" ("A4" until 2026-10-14) shows the shrunk page at the scale a new page has: a blank
|
||||
# sheet fitted to the window, so the page is smaller than it.
|
||||
firefox.run("document.getElementById('zoom_fit').click();")
|
||||
fitted_scale = firefox.run("return window.kokkoja.renderer.cssPixelsPerUnit;")
|
||||
|
||||
Reference in new issue
Block a user