mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Scripting support for Author class and expanded properties for feeds
This commit is contained in:
@@ -57,7 +57,11 @@ class ScriptingTests: XCTestCase {
|
||||
}
|
||||
|
||||
XCTAssert(testResult.booleanValue == true, "test_result should be true")
|
||||
|
||||
if (testResult.booleanValue != true )
|
||||
{
|
||||
print("test_result was \(testResult)")
|
||||
print("script_result was \(String(describing: usrfDictionary["script_result"]))")
|
||||
}
|
||||
return usrfDictionary["script_result"]
|
||||
}
|
||||
|
||||
@@ -85,5 +89,9 @@ class ScriptingTests: XCTestCase {
|
||||
func testNameOfEveryFolderScript() {
|
||||
_ = doIndividualScript(filename: "testNameOfEveryFolder")
|
||||
}
|
||||
|
||||
func testNameOfAuthorsScript() {
|
||||
_ = doIndividualScript(filename: "testNameOfAuthors")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +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 "Evergreen"
|
||||
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}
|
||||
Reference in New Issue
Block a user