Closed Bug 979661 Opened 12 years ago Closed 12 years ago

[marionette-js-client] The documentation for the scriptWith function is not correct.

Categories

(Testing Graveyard :: JSMarionette, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: evanxd, Assigned: x95102003)

Details

(Whiteboard: [good first bug][mentor=:evanxd])

Attachments

(1 file, 3 obsolete files)

It should say that return the result of script execution. Please refer to https://github.com/mozilla-b2g/marionette-js-client/blob/master/lib/marionette/element.js#L100.
Assignee: nobody → x95102003
I want to know whether I need to understand about the executeScript method or not? it is just a task I add the something lost to annotation?
Hi 翌帆, Sorry, late for the reply. For this first bug, I don't need to know the detail of executeScript method. You could just add `@return {String|Number} return value of the script.` at https://github.com/mozilla-b2g/marionette-js-client/blob/master/lib/marionette/element.js#L100. Send a pull request with the change, and send your mentor a review request with following the https://speakerdeck.com/eragonj/all-about-firefox-os?slide=68 doc. Thanks.
Attachment #8389697 - Flags: review?(gduan)
Hi , please check your attachment again, you should paste the link of your pull request , like https://github.com/mozilla-b2g/gaia/pull/11111 . Thanks.
Flags: needinfo?(x95102003)
Flags: needinfo?(x95102003)
Attachment #8389916 - Flags: review?(gduan)
Comment on attachment 8389697 [details] add the annotation in scriptWith method remove it
Attachment #8389697 - Attachment is obsolete: true
Attachment #8389697 - Flags: review?(gduan)
Comment on attachment 8389916 [details] [review] add the annotation in scriptWith method Hi, I have put my comments on github, please modify it and set the review flags to me again.
Attachment #8389916 - Flags: review?(gduan)
Comment on attachment 8389916 [details] [review] add the annotation in scriptWith method I am Sorry that I don't use it well. so there are many repeat comment or request. I modified it. Thanks for your comment
Attachment #8389916 - Flags: review?(gduan)
That's totally fine! Just two more things, 1. I don't think two separated commits is necessary. Could you combine them into one commit and push again? 2. In order to trace the bug easier from commit log in the future, I suggest to modify your commit message as the bug title "Bug 979661 - [marione........" , so that, we can use "git blame" to see which bug has done the modification. ( I saw your msg is "Update comment in line 100", it's not good, since the location will change eventually.) we're almost there!
Flags: needinfo?(x95102003)
btw, that'll be more convenient if you put your English name bugzilla ;)
I pull new request and correct my mistake. please review again and sorry about that I don't know how to combine two commit into one.
Attachment #8390400 - Flags: review?(gduan)
Flags: needinfo?(x95102003)
Hi Alex, In reply to comment 13, for example, you have root commit, and your commit#1 and commit#2, you can rebase to root commit with |git rebase -i "rootcommit hash"| , or reset to root commit and commit again (git reset "root commit hash" ; git commit -m "xxx") I noticed that the travis failed with timeout error. Although, it's absolute not related to your modification. I still suggest you to have the travis rerun and make it green. Normally, we'll modify the commit message and push again, so that github would think the two commits are different. All of the above are just processes, you'll get more familiar with that!
Flags: needinfo?(x95102003)
I sent a new pull request. Well,I want to ask about the combine two comment question. I need to clone all the project then combined the comments. Finally,pull it to the github right?
Attachment #8391029 - Flags: review?(gduan)
Flags: needinfo?(x95102003)
Attachment #8389916 - Attachment is obsolete: true
Attachment #8389916 - Flags: review?(gduan)
Attachment #8390400 - Attachment is obsolete: true
Attachment #8390400 - Flags: review?(gduan)
Comment on attachment 8391029 [details] [review] Update the Bug with your suggestion and send new pull request. Good job, set Evan to check it again.
Attachment #8391029 - Flags: review?(gduan)
Attachment #8391029 - Flags: review?(evanxd)
Attachment #8391029 - Flags: review+
Attachment #8391029 - Flags: review?(evanxd) → review+
Hi Alex and George, r+, nice shot.
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: