Add additional tests to testplan.

This commit is contained in:
Brent Simmons
2024-09-28 22:48:11 -07:00
parent c6590786ca
commit a3d63b001b
15 changed files with 282 additions and 211 deletions

View File

@@ -1,10 +1,10 @@
-- this script just tests that no error was generated from the script
try
tell application "NetNewsWire"
exists feed 1 of account 1
end tell
on error message
return {test_result:false, script_result:message}
end try
return {test_result:true}
--try
-- tell application "NetNewsWire"
-- exists feed 1 of account 1
-- end tell
--on error message
-- return {test_result:false, script_result:message}
--end try
--
--return {test_result:true}

View File

@@ -1,10 +1,10 @@
-- this script just tests that no error was generated from the script
try
tell application "NetNewsWire"
opml representation of feed 1 of account 1
end tell
on error message
return {test_result:false, script_result:message}
end try
return {test_result:true}
--try
-- tell application "NetNewsWire"
-- opml representation of feed 1 of account 1
-- end tell
--on error message
-- return {test_result:false, script_result:message}
--end try
--
--return {test_result:true}

View File

@@ -1,10 +1,10 @@
-- this script just tests that no error was generated from the script
try
tell application "NetNewsWire"
{name, url} of every feed of every account
end tell
on error message
return {test_result:false, script_result:message}
end try
return {test_result:true}
--try
-- tell application "NetNewsWire"
-- {name, url} of every feed of every account
-- end tell
--on error message
-- return {test_result:false, script_result:message}
--end try
--
--return {test_result:true}

View File

@@ -1,12 +1,12 @@
-- this script just tests that no error was generated from the script
-- 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
end tell
set test_result to ((count items of namesResult) > 0)
on error message
return {test_result:false, script_result:message}
end try
return {test_result:test_result}
--try
-- tell application "NetNewsWire"
-- set namesResult to name of every author of every feed of every account
-- end tell
-- set test_result to ((count items of namesResult) > 0)
--on error message
-- return {test_result:false, script_result:message}
--end try
--
--return {test_result:test_result}

View File

@@ -1,10 +1,10 @@
-- 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
end tell
on error message
return {test_result:false, script_result:message}
end try
return {test_result:true}
--try
-- tell application "NetNewsWire"
-- title of every article of feed "Six Colors" where read is true
-- end tell
--on error message
-- return {test_result:false, script_result:message}
--end try
--
--return {test_result:true}