Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Issue 8920005: Add TestingInstance::EvalScript method which posts a message that the test page can eval(). (Closed)

Created:
9 years ago by bbudge
Modified:
9 years ago
CC:
chromium-reviews, piman+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, yzshen+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

Add TestingInstance::ExecuteScript method which posts a message that the test page can eval(). Change InputEvent and PostMessage tests to use this. Add proxy for PPB_Testing_Dev::SimulateInputEvent function. BUG=NONE TEST=ui_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114924

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 3

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -24 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_testing_rpc_server.cc View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_testing.cc View 1 2 3 4 5 2 chunks +14 lines, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc View 1 2 3 4 5 3 chunks +19 lines, -2 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_server.cc View 1 2 3 4 5 2 chunks +16 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppb_testing.srpc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/trusted/srpcgen/ppb_rpc.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/untrusted/srpcgen/ppb_rpc.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/tests/test_case.html View 1 2 3 4 5 6 7 3 chunks +10 lines, -0 lines 0 comments Download
M ppapi/tests/test_input_event.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -5 lines 0 comments Download
M ppapi/tests/test_post_message.cc View 1 2 3 4 5 6 7 3 chunks +12 lines, -16 lines 0 comments Download
M ppapi/tests/testing_instance.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/tests/testing_instance.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
bbudge
9 years ago (2011-12-13 19:31:48 UTC) #1
bbudge
This is ready for review. I will have to merge with the CL that adds ...
9 years ago (2011-12-13 22:15:51 UTC) #2
dmichael (off chromium)
http://codereview.chromium.org/8920005/diff/15003/ppapi/api/dev/ppb_testing_dev.idl File ppapi/api/dev/ppb_testing_dev.idl (right): http://codereview.chromium.org/8920005/diff/15003/ppapi/api/dev/ppb_testing_dev.idl#newcode111 ppapi/api/dev/ppb_testing_dev.idl:111: * The exception, if any, will be returned in ...
9 years ago (2011-12-13 23:40:55 UTC) #3
bbudge
Punting on test_input_events, do test_post_message instead. http://codereview.chromium.org/8920005/diff/15003/ppapi/api/dev/ppb_testing_dev.idl File ppapi/api/dev/ppb_testing_dev.idl (right): http://codereview.chromium.org/8920005/diff/15003/ppapi/api/dev/ppb_testing_dev.idl#newcode111 ppapi/api/dev/ppb_testing_dev.idl:111: * The exception, ...
9 years ago (2011-12-14 03:00:04 UTC) #4
dmichael (off chromium)
I hate to be a pain, but this seems to require a lot of icky ...
9 years ago (2011-12-15 04:02:37 UTC) #5
bbudge
On 2011/12/15 04:02:37, dmichael wrote: > I hate to be a pain, but this seems ...
9 years ago (2011-12-15 18:57:01 UTC) #6
bbudge
Dave, this CL uses the PostMessage technique to run script on the test page. I ...
9 years ago (2011-12-16 22:32:36 UTC) #7
dmichael (off chromium)
http://codereview.chromium.org/8920005/diff/27027/ppapi/tests/test_input_event.cc File ppapi/tests/test_input_event.cc (right): http://codereview.chromium.org/8920005/diff/27027/ppapi/tests/test_input_event.cc#newcode50 ppapi/tests/test_input_event.cc:50: std::string js_code("TESTING_MESSAGE:ExecuteScript:"); Could you instead add an "ExecuteScript" convenience ...
9 years ago (2011-12-16 22:38:55 UTC) #8
bbudge
http://codereview.chromium.org/8920005/diff/27027/ppapi/tests/test_input_event.cc File ppapi/tests/test_input_event.cc (right): http://codereview.chromium.org/8920005/diff/27027/ppapi/tests/test_input_event.cc#newcode50 ppapi/tests/test_input_event.cc:50: std::string js_code("TESTING_MESSAGE:ExecuteScript:"); Good idea. Done. On 2011/12/16 22:38:56, dmichael ...
9 years ago (2011-12-16 23:24:06 UTC) #9
dmichael (off chromium)
LGTM, thanks for being patient with my pickyness. It looks great.
9 years ago (2011-12-16 23:26:17 UTC) #10
dmichael (off chromium)
On 2011/12/16 23:26:17, dmichael wrote: > LGTM, thanks for being patient with my pickyness. It ...
9 years ago (2011-12-16 23:27:17 UTC) #11
bbudge
On 2011/12/16 23:27:17, dmichael wrote: > On 2011/12/16 23:26:17, dmichael wrote: > > LGTM, thanks ...
9 years ago (2011-12-17 00:20:19 UTC) #12
dmichael (off chromium)
lgtm On Dec 16, 2011 5:20 PM, <bbudge@chromium.org> wrote: > On 2011/12/16 23:27:17, dmichael wrote: ...
9 years ago (2011-12-17 00:49:34 UTC) #13
bbudge
On 2011/12/17 00:49:34, dmichael wrote: > lgtm > On Dec 16, 2011 5:20 PM, <mailto:bbudge@chromium.org> ...
9 years ago (2011-12-17 04:21:20 UTC) #14
bbudge
On 2011/12/17 04:21:20, bbudge1 wrote: > On 2011/12/17 00:49:34, dmichael wrote: > > lgtm > ...
9 years ago (2011-12-17 05:42:13 UTC) #15
dmichael (off chromium)
That's fine, it's not proxied yet. It should be disabled in oop and nacl. On ...
9 years ago (2011-12-17 05:44:36 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/8920005/31030
9 years ago (2011-12-17 14:17:47 UTC) #17
commit-bot: I haz the power
9 years ago (2011-12-17 14:17:55 UTC) #18
Presubmit check for 8920005-31030 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit Warnings **
Found lines longer than 80 characters (first 5 shown).
  ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_server.cc, line 2710, 85
chars

Presubmit checks took 1.9s to calculate.

Powered by Google App Engine
This is Rietveld 408576698