Closed Bug 453202 Opened 16 years ago Closed 1 month ago

Develop an AppleScript test suite for bookmarks operations

Categories

(Camino Graveyard :: General, defect)

All
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: alqahira, Unassigned)

References

Details

(Keywords: good-first-bug)

When Peter completed his SoC last summer, he said something to the effect of "all of our bookmark operations are now testable via AppleScript."  Recently, Stuart went to change some bookmark APIs and wanted to make sure he wasn't breaking any of the scripting support; one of the ways to check this would have been an AppleScript test suite.

The bulk of the work involved here is writing a series of AppleScripts to test simple and complex bookmark operations and checking against expected results on a fresh profile, e.g. 

tell application "Camino"
	get the name of the last bookmark of bookmark bar collection
	if the result ≠ "Translate this page" then
		--error reporting stuff goes here
	end if
end tell

We'd need to do a little bit of work to hook up a Makefile or target that will (compile and) run the AppleScripts and run error logging, but the biggest part of this is writing the AppleScripts; we could tag team on the integration part.
"Good First Bug" not necessarily for an Obj-C person, but for someone interested in doing something for Camino who does know a bit of AS.
Whiteboard: [Good First Bug]
(In reply to comment #0)
>     if the result ≠ "Translate this page" then

Er, "Translate this Page"; I had it right in the first version of this bug.
Hardware: Macintosh → All
Attachment 337310 [details] on bug 454087 checks various javascript: and data: URIs to make sure they fail (per bug 454087 and bug 396263).
Keywords: good-first-bug
Whiteboard: [Good First Bug]
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.