Closed
Bug 844239
Opened 12 years ago
Closed 12 years ago
Robocop cleanup
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 23
People
(Reporter: gbrown, Assigned: gbrown)
Details
Attachments
(4 files)
19.28 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
12.04 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
1.47 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
3.71 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
I want to cleanup the source code for Robocop tests -- make code formatting more uniform, etc.
![]() |
Assignee | |
Comment 1•12 years ago
|
||
As a start, this replaces tabs with 4 space indents and removes execute permission from a few files.
Assignee: nobody → gbrown
Attachment #717248 -
Flags: review?(jmaher)
Comment 2•12 years ago
|
||
Comment on attachment 717248 [details] [diff] [review]
indentation and file permissions
Review of attachment 717248 [details] [diff] [review]:
-----------------------------------------------------------------
thanks!
::: mobile/android/base/tests/testFormHistory.java.in
@@ +31,5 @@
> Context context = (Context)getActivity();
> ContentResolver cr = context.getContentResolver();
> ContentValues[] cvs = new ContentValues[1];
> cvs[0] = new ContentValues();
>
nit, extra whitespace
@@ +102,1 @@
>
nit, extra whitespace
::: mobile/android/base/tests/testPan.java.in
@@ +46,5 @@
> int frames = mDriver.stopFrameRecording();
> mAsserter.dumpLog("__start_report" + Integer.toString(frames) + "__end_report");
> long msecs = System.currentTimeMillis();
> mAsserter.dumpLog("__startTimestamp" + msecs + "__endTimestamp");
> + }
nit, extra whitespace
Attachment #717248 -
Flags: review?(jmaher) → review+
![]() |
Assignee | |
Comment 3•12 years ago
|
||
![]() |
Assignee | |
Updated•12 years ago
|
Whiteboard: [leave open]
Comment 4•12 years ago
|
||
Comment 6•12 years ago
|
||
Comment on attachment 718956 [details] [diff] [review]
more indentation and spacing corrections; also consistent bracketing
Review of attachment 718956 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for this. I catch 9/10 simple style things, but there are always a few that sneak by!
Attachment #718956 -
Flags: review?(jmaher) → review+
![]() |
Assignee | |
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
![]() |
Assignee | |
Comment 9•12 years ago
|
||
I noticed testAwesomebarSwipes does not use blockForGeckoReady. Simply waiting for Gecko:Ready can lead to test failures (the event may be sent before the test starts).
While I was editing this, I noticed that the header comment was completely wrong -- wrote a new one.
Attachment #735952 -
Flags: review?(jmaher)
Comment 10•12 years ago
|
||
Comment on attachment 735952 [details] [diff] [review]
use blockForGeckoReady in testAwesomebarSwipes
Review of attachment 735952 [details] [diff] [review]:
-----------------------------------------------------------------
thanks, nice and simple.
Attachment #735952 -
Flags: review?(jmaher) → review+
![]() |
Assignee | |
Comment 11•12 years ago
|
||
Comment 12•12 years ago
|
||
![]() |
Assignee | |
Comment 13•12 years ago
|
||
A few robocop html files do not specify the character encoding. afaik, this does not contribute to any test failures, but it does cause a warning seen in test logs:
[JavaScript Warning: "A form was submitted in the windows-1252 encoding which cannot encode all Unicode characters, so user input may get corrupted. To avoid this problem, the page should be changed so that the form is submitted in the UTF-8 encoding either by changing the encoding of the page itself to UTF-8 or by specifying accept-charset=utf-8 on the form element." {file: "http://mochi.test:8888/tests/robocop/robocop_login.html" line: 6}]
This patch specifies the charset as utf-8 in these files.
Attachment #739817 -
Flags: review?(jmaher)
Comment 14•12 years ago
|
||
Comment on attachment 739817 [details] [diff] [review]
specify charset in some rc test files
Review of attachment 739817 [details] [diff] [review]:
-----------------------------------------------------------------
robocop will be an industry leader compared to all the other test suites we have!
Attachment #739817 -
Flags: review?(jmaher) → review+
![]() |
Assignee | |
Comment 15•12 years ago
|
||
Comment 16•12 years ago
|
||
![]() |
Assignee | |
Comment 17•12 years ago
|
||
I was going to use this bug for landing additional cleanup / restructuring patches, but others are taking up the cause now (bug 910791, etc).
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [leave open]
Updated•12 years ago
|
Target Milestone: --- → Firefox 23
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•