Fix compile errors in AppleScript scripts, which gets NetNewsWireTests building, running, and passing.
This commit is contained in:
parent
1091d63923
commit
a74ee8e544
|
@ -1,7 +1,7 @@
|
|||
-- this script just tests that no error was generated from the script
|
||||
try
|
||||
tell application "NetNewsWire"
|
||||
exists feed 1 of account 1
|
||||
exists webfeed 1 of account 1
|
||||
end tell
|
||||
on error message
|
||||
return {test_result:false, script_result:message}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
-- this script just tests that no error was generated from the script
|
||||
try
|
||||
tell application "NetNewsWire"
|
||||
opml representation of feed 1 of account 1
|
||||
opml representation of webfeed 1 of account 1
|
||||
end tell
|
||||
on error message
|
||||
return {test_result:false, script_result:message}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
-- this script just tests that no error was generated from the script
|
||||
try
|
||||
tell application "NetNewsWire"
|
||||
{name, url} of every feed of every account
|
||||
{name, url} of every webfeed of every account
|
||||
end tell
|
||||
on error message
|
||||
return {test_result:false, script_result:message}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
-- and that the returned list is greater than 0
|
||||
try
|
||||
tell application "NetNewsWire"
|
||||
set namesResult to name of every author of every feed of every account
|
||||
set namesResult to name of every author of every webfeed of every account
|
||||
end tell
|
||||
set test_result to ((count items of namesResult) > 0)
|
||||
on error message
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
-- this script just tests that no error was generated from the script
|
||||
try
|
||||
tell application "NetNewsWire"
|
||||
title of every article of feed "Six Colors" where read is true
|
||||
title of every article of webfeed "Six Colors" where read is true
|
||||
end tell
|
||||
on error message
|
||||
return {test_result:false, script_result:message}
|
||||
|
|
Loading…
Reference in New Issue