mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-15 19:32:21 +02:00
Squash Odysseus development history
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
SCRIPT = (
|
||||
Path(__file__).resolve().parents[1] / "static/js/document.js"
|
||||
).read_text(encoding="utf-8")
|
||||
|
||||
|
||||
def test_email_send_requires_actual_send_button_event_target():
|
||||
assert "target.closest('#doc-email-send-btn')" in SCRIPT
|
||||
assert "const btn = targetBtn || null;" in SCRIPT
|
||||
assert "rectBtn" not in SCRIPT
|
||||
assert "_eventInsideElement" not in SCRIPT
|
||||
|
||||
|
||||
def test_email_caret_requires_actual_caret_event_target():
|
||||
assert "target.closest('#doc-email-send-caret')" in SCRIPT
|
||||
assert "const caret = targetCaret || null;" in SCRIPT
|
||||
assert "rectCaret" not in SCRIPT
|
||||
Reference in New Issue
Block a user