Closed joshaber closed 11 years ago
:+1: @aroben
Just a couple of queries.
Is there any way to unit test parts of this?
Is there any way to unit test parts of this?
I'm open to suggestions but I don't see anything that could be.
:wine_glass:
We could at least test:
HTML
and CSS
properties appear somewhere in the full page that the web view loads.I'm not really sure how to test (2) or (3) in a unit test.
For (2) you can just check that -isLoading
is NO
after setting HTML
or CSS
.
@aroben Do you have any Protips™ on how we could do 2 or 3?
EDIT: Beaten to the :facepunch:.
:boom: :sailboat:
(3) is pretty tricky to test. You could use JavaScript to click a link. But then NSWorkspace
would get called, which seems bad.
:boom: :ship:
:+1:
I'm :+1:, @aroben any last thoughts?
:shipit:
:boom:
BECAUSE IT SHOULDN"T BE THIS HARD