Skip to content
This repository was archived by the owner on Mar 15, 2018. It is now read-only.

Open a payment popup window (bug 1110228)#48

Merged
kumar303 merged 1 commit into
mozilla:masterfrom
kumar303:pay-win
Dec 15, 2014
Merged

Open a payment popup window (bug 1110228)#48
kumar303 merged 1 commit into
mozilla:masterfrom
kumar303:pay-win

Conversation

@kumar303
Copy link
Copy Markdown
Contributor

@muffinresearch r?

It's mostly working but I still need to clean up an async problem in the test -- a failure that only happens when the whole suite runs. I think I need to understand the execution flow of mocha async tests better.

But, yeah, payment window opens on Chrome! the "paymentSuccess() function doesn't exist" error in the screencast will be fixed when your shim patch is done.

desktop-payment mov

Comment thread example/shared/js/index.js Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit, lets avoid whitelist, approved list work ok?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's just the example app but I fixed it up. I think "map" is actually a more accurate verb here.

@muffinresearch
Copy link
Copy Markdown
Contributor

But, yeah, payment window opens on Chrome! the "paymentSuccess() function doesn't exist" error in the screencast will be fixed when your shim patch is done.

That's ready for review here: mozilla/spartacus#177

@kumar303
Copy link
Copy Markdown
Contributor Author

Hah! After nearly suffocating in a mountain of yak hair, I decided to try upgrading karma and that made the tests pass.

Long story short, it looks like I was wrong about the async execution model of karma/mocha. It appears that karma maybe does block until each test finishes (when done() is called) which is what I thought. I'm still not 100% sure about it though.

kumar303 added a commit that referenced this pull request Dec 15, 2014
Open a payment popup window (bug 1110228)
@kumar303 kumar303 merged commit b36169e into mozilla:master Dec 15, 2014
@kumar303 kumar303 deleted the pay-win branch December 15, 2014 20:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants