Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Convert testrtc to polymer 1.0 #106

Merged
merged 16 commits into from
Jul 27, 2015
Merged

Convert testrtc to polymer 1.0 #106

merged 16 commits into from
Jul 27, 2015

Conversation

andresusanopinto
Copy link
Contributor

Hi @KaptenJansson, can you have a look on this and see what features I might have broken?
If you think this starts to look almost ready then I will clean the code and make sure the tests.

traceGumEvent({'status': 'pending', 'constraints': constraints});
getUserMedia(constraints, successFunc, failFunc);
} catch (e) {
console.log(e);
Copy link
Contributor

Choose a reason for hiding this comment

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

Use console.error() for errors. Or is that hard since we only catch what's in console.log?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We werenot using console.error before...lets do that sort of cleanup after.

Copy link
Contributor

Choose a reason for hiding this comment

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

SGTM

@KaptenJansson
Copy link
Contributor

Overall LGTM after fixing the Grunt errors (need to add stuff to jshintrtc etc) and adjusting the style, the font is smaller and the title is close to the middle, was this intentional?

In the screenshot below, the new style is to the left while the old existing one is to the right:
polymer05vs1 0

@KaptenJansson
Copy link
Contributor

Did some more testing, the test result prefixes are no longer present (OK, INFO, WARNING, FAILED)

@KaptenJansson
Copy link
Contributor

Also filing a bug from the initial fail gum dialog results in a RangeError which prevents the user from entering an issue description. Bug reporting from the title menu works fine.

Uncaught RangeError: Maximum call stack size exceeded.Polymer.PaperDialogBehaviorImpl._onFocus @ paper-dialog- behavior.html:215Polymer.PaperDialogBehaviorImpl._onFocus @ paper-dialog-behavior.html:213Polymer.PaperDialogBehaviorImpl._onFocus @ paper-dialog-behavior.html:215Polymer.PaperDialogBehaviorImpl._onFocus @ paper-dialog-behavior.html:213
polymer-mini.html:725 Uncaught RangeError: Maximum call stack size exceeded.

@KaptenJansson
Copy link
Contributor

Worth noting is that the initial gum dialog is often rendered to the right rather than in the middle, I remember seeing the in the old polymer as well but I believe we did solve it somehow, not sure how though.

@KaptenJansson
Copy link
Contributor

Sorry for not looking thoroughly enough initially.

@andresusanopinto
Copy link
Contributor Author

Fixed:

  • Gum dialog is now on correct position when opening the page.
  • Gum dialog bug report no longer leads to max call stack exception.
  • Made prefixes such as OK, INFO, ERROR visible again.
  • Attempted to made the styles closer to original.

Not fixed:

  • Title position and style, it uses iron-toolbar and i can't get around to style it properly.

@KaptenJansson
Copy link
Contributor

LGTM, very nice work! A lot cleaner code!

KaptenJansson added a commit that referenced this pull request Jul 27, 2015
Convert testrtc to polymer 1.0
@KaptenJansson KaptenJansson merged commit 551a59a into master Jul 27, 2015
@KaptenJansson KaptenJansson deleted the polymer1 branch July 27, 2015 08:40
@KaptenJansson
Copy link
Contributor

Vulcanization is not working properly, noticed this when pushing to https://2-dot-test-rtc.appspot.com/.

One thing I did notice is that the strip and inline methods are replace with inlineScripts, inlineCss and stripComments. Changing to those does not solve it though. Will continue to investigate.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants