Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making src/core/jpx.js adhere to the style guide #4425

Merged
merged 1 commit into from
Mar 10, 2014

Conversation

timvandermeij
Copy link
Contributor

No description provided.

@timvandermeij
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Mar 9, 2014

From: Bot.io (Windows)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://107.22.172.223:8877/a906452daf078d8/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Mar 9, 2014

From: Bot.io (Linux)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/a5f17f13ac9b165/output.txt

qcc.scalarExpounded = scalarExpounded;
qcc.guardBits = sqcd >> 5;
qcc.guardBits = sqcd >> 5;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: superfluous space added here.

@pdfjsbot
Copy link

pdfjsbot commented Mar 9, 2014

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/a5f17f13ac9b165/output.txt

Total script time: 25.18 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@timvandermeij
Copy link
Contributor Author

@Snuffleupagus Both nits have been fixed.

@pdfjsbot
Copy link

pdfjsbot commented Mar 9, 2014

From: Bot.io (Windows)


Failed

Full output at http://107.22.172.223:8877/a906452daf078d8/output.txt

Total script time: 35.73 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://107.22.172.223:8877/a906452daf078d8/reftest-analyzer.html#web=eq.log

@@ -1458,8 +1467,8 @@ var JpxImage = (function JpxImageClosure() {
this.width = width;
this.height = height;

this.contextLabelTable = subband == 'HH' ? HHContextLabel :
subband == 'HL' ? HLContextLabel : LLAndLHContextsLabel;
this.contextLabelTable = (subband == 'HH' ? HHContextLabel :
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this qualify as a control statement? If yes this should use strict equalities

Copy link
Collaborator

Choose a reason for hiding this comment

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

Technically yes, but we have decided to post-phone changing the equalities for now.
The reason is that changing all of them could be very difficult, given that some of the current comparisons might depend on implicit type conversion. (We obviously want to minimize the risk of regressions, particularly this close to the next uplift to mozcentral.)

In the future I personally would like to change those as well, but in this first round of clean-up we decided against it.

@Snuffleupagus
Copy link
Collaborator

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.21.233.14:8877/7aa1ba1fed06927/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.22.172.223:8877/07776e164ac81b8/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://107.22.172.223:8877/07776e164ac81b8/output.txt

Total script time: 35.48 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://107.22.172.223:8877/07776e164ac81b8/reftest-analyzer.html#web=eq.log

@timvandermeij
Copy link
Contributor Author

Linux also passed. It's annoying that no message is displayed, but it's being tracked.

Snuffleupagus added a commit that referenced this pull request Mar 10, 2014
Making src/core/jpx.js adhere to the style guide
@Snuffleupagus Snuffleupagus merged commit b05f055 into mozilla:master Mar 10, 2014
@timvandermeij timvandermeij deleted the jpx-syntax branch March 10, 2014 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants