Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
More error prototyping
Browse files Browse the repository at this point in the history
  • Loading branch information
alloy committed Apr 12, 2009
1 parent ad1dfe3 commit 42fbdab
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/js_test_san/test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,24 @@ def webView_didFinishLoadForFrame(_, __)
end
end

# Catches file load errors:
# Catches resource load errors:
#
# webView.resourceLoadDelegate = self
#
# def webView_resource_didFailLoadingWithError_fromDataSource(w,r,e,d)
# message = "#{e.userInfo['NSLocalizedDescription']}: #{e.userInfo['NSErrorFailingURLStringKey']}"
# @delegate.test_ran(Test.new(self, "Unable to load test case", :failed, message))
# @delegate.test_case_finished(self)
# end

# Logs js errors:
#
# webView.setUIDelegate(self)
#
# def webView_addMessageToConsole(_, msg)
# p msg
# end

def handleEvent(event)
element = event.target
case element
Expand Down

0 comments on commit 42fbdab

Please sign in to comment.