Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

[[ Tests ]] Add tests for LCB log and throw in widget OnCreate #5525

Merged
merged 5 commits into from
May 30, 2017

Conversation

livecodeali
Copy link
Member

No description provided.

@livecodeali livecodeali added this to the 8.1.5-rc-1 milestone May 28, 2017
@mention-bot
Copy link

@livecodeali, thanks for your PR! By analyzing the history of the files in this pull request, we identified @livecodefraser to be a potential reviewer.


put empty into gLastSentWidgetError

create widget "Test" as "com.livecode.lcs_tests.core.widgetthrow"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@livecodeali I'm wondering if errorDialog should be centrally handled with a way to tell the test lib to collect a particular error rather than quit. Otherwise maybe pass if pError is not error?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about passing... what's the use case?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment any other execution error in this script will be captured and ignored. If it's all handled centrally then it's not an issue as you would tell the test lib the name of the error to expect for a test and it would treat all others the way it does now.

@@ -92,6 +92,13 @@ on DoQuit
if "errorDialog" is in the pendingMessages then
send "DoQuit" to me in 0 millisecs
else
local tError
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this check be after each test rather than at the end. Perhaps in TestRunnerInvokeTestCommand? That way we know which test was the problem.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh, yes, just fixed that :-)

@runrevmark
Copy link
Contributor

@livecode-vulcan review ok eec8080

@livecode-vulcan
Copy link
Contributor

💙 review by @runrevmark ok eec8080

livecode-vulcan added a commit that referenced this pull request May 30, 2017
[[ Tests ]] Add tests for LCB log and throw in widget OnCreate
@livecode-vulcan
Copy link
Contributor

😎 test success eec8080

  • try-community-armv6-android-api8: success
  • try-community-armv6-android-api9: success
  • try-community-js-emscripten-sdk1.35: success
  • try-community-universal-ios-iphoneos10.3: success
  • try-community-universal-ios-iphonesimulator10.3: success
  • try-community-universal-mac-macosx10.6: success
  • try-community-universal-mac-macosx10.9: success
  • try-community-x86-linux-debian7: success
  • try-community-x86-linux-debian8: success
  • try-community-x86_64-linux-debian7: success
  • try-community-x86_64-linux-debian8: success
  • try-community-x86-win32: success
  • try-community-x86_64-win32: success

@livecodeali livecodeali merged commit 9e5d6ad into livecode:develop-8.1 May 30, 2017
@livecodeali livecodeali deleted the lcb-engine_tests branch May 30, 2017 12:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.