Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(8374)

Issue 252880043: Use javascript to parse html & generate js content (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 9 months ago by nednguyen
Modified:
8 years, 9 months ago
Reviewers:
dsinclair, nduca
CC:
tracing-review_chromium.org
Base URL:
https://github.com/google/trace-viewer.git@master
Visibility:
Public.

Description

Use javascript to parse html & generate js content BUG=https://github.com/google/trace-viewer/issues/1030, https://github.com/google/trace-viewer/issues/1034 R=dsinclair@chromium.org Committed: https://chromium.googlesource.com/external/trace-viewer/+/b734ae94ff81ed6de98648db8f7357b9129d3939

Patch Set 1 : #

Total comments: 27

Patch Set 2 : Address Dan's comments #

Total comments: 3

Patch Set 3 : Address Dan's comment #

Total comments: 43

Patch Set 4 : Address Dan's comments #

Total comments: 8

Patch Set 5 : Address Dan's comments #

Total comments: 4

Patch Set 6 : Drop number type check in createJsChunk #

Patch Set 7 : Make all the generateJsChunks... return array #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8439 lines, -17 lines) Patch
M tracing/build/d8_bootstrap.js View 1 2 3 4 chunks +14 lines, -9 lines 0 comments Download
M tracing/build/d8_runner.py View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M tracing/build/d8_runner_unittest.py View 6 chunks +239 lines, -7 lines 0 comments Download
A tracing/build/html_to_js_generator.js View 1 2 3 4 5 6 1 chunk +180 lines, -0 lines 0 comments Download
M tracing/third_party/parse5/README.chromium View 1 chunk +3 lines, -1 line 0 comments Download
A tracing/third_party/parse5/parse5.js View 1 1 chunk +7977 lines, -0 lines 0 comments Download
A tracing/third_party/parse5/parse5_lib.js View 1 chunk +14 lines, -0 lines 0 comments Download
M tracing/tracing_project.py View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21
nednguyen
I still need to add bunch of tests & clean up the implementation a bit. ...
8 years, 9 months ago (2015-07-03 16:37:00 UTC) #1
nednguyen
Added unnittest, PTAL https://codereview.appspot.com/252880043/diff/110001/tracing/build/d8_runner_unittest.py File tracing/build/d8_runner_unittest.py (right): https://codereview.appspot.com/252880043/diff/110001/tracing/build/d8_runner_unittest.py#newcode322 tracing/build/d8_runner_unittest.py:322: def testGenerateJsForD8RunnerImportWithEscapedScriptTag(self): Nat: is this the ...
8 years, 9 months ago (2015-07-04 18:09:56 UTC) #2
dsinclair
As a side note, you can do BUG=#1030, #1034 and github should link the bugs ...
8 years, 9 months ago (2015-07-06 16:50:51 UTC) #3
nednguyen
On 2015/07/06 16:50:51, dsinclair wrote: > As a side note, you can do > > ...
8 years, 9 months ago (2015-07-06 16:51:45 UTC) #4
dsinclair
https://codereview.appspot.com/252880043/diff/110001/tracing/build/d8_bootstrap.js File tracing/build/d8_bootstrap.js (right): https://codereview.appspot.com/252880043/diff/110001/tracing/build/d8_bootstrap.js#newcode158 tracing/build/d8_bootstrap.js:158: global.path_to_parse5 = '<%parse5_js_path%>'; I'd call this path_to_js_parser. If we ...
8 years, 9 months ago (2015-07-06 17:06:45 UTC) #5
dsinclair
On 2015/07/06 16:51:45, nednguyen wrote: > On 2015/07/06 16:50:51, dsinclair wrote: > > As a ...
8 years, 9 months ago (2015-07-06 17:07:14 UTC) #6
nednguyen
https://codereview.appspot.com/252880043/diff/110001/tracing/build/d8_bootstrap.js File tracing/build/d8_bootstrap.js (right): https://codereview.appspot.com/252880043/diff/110001/tracing/build/d8_bootstrap.js#newcode158 tracing/build/d8_bootstrap.js:158: global.path_to_parse5 = '<%parse5_js_path%>'; On 2015/07/06 17:06:45, dsinclair wrote: > ...
8 years, 9 months ago (2015-07-06 19:00:57 UTC) #7
nednguyen
https://codereview.appspot.com/252880043/diff/130001/tracing/third_party/parse5/parse5_lib.js File tracing/third_party/parse5/parse5_lib.js (right): https://codereview.appspot.com/252880043/diff/130001/tracing/third_party/parse5/parse5_lib.js#newcode3 tracing/third_party/parse5/parse5_lib.js:3: global.parse5 = {}; +Dan: this is where parse5's module ...
8 years, 9 months ago (2015-07-06 22:54:06 UTC) #8
dsinclair
https://codereview.appspot.com/252880043/diff/110001/tracing/build/d8_bootstrap.js File tracing/build/d8_bootstrap.js (right): https://codereview.appspot.com/252880043/diff/110001/tracing/build/d8_bootstrap.js#newcode245 tracing/build/d8_bootstrap.js:245: ': File does not exist'); On 2015/07/06 19:00:57, nednguyen ...
8 years, 9 months ago (2015-07-07 14:33:07 UTC) #9
nednguyen
https://codereview.appspot.com/252880043/diff/110001/tracing/build/d8_bootstrap.js File tracing/build/d8_bootstrap.js (right): https://codereview.appspot.com/252880043/diff/110001/tracing/build/d8_bootstrap.js#newcode245 tracing/build/d8_bootstrap.js:245: ': File does not exist'); On 2015/07/07 14:33:06, dsinclair ...
8 years, 9 months ago (2015-07-07 16:32:52 UTC) #10
dsinclair
https://codereview.appspot.com/252880043/diff/110001/tracing/build/html_to_js_generator.js File tracing/build/html_to_js_generator.js (right): https://codereview.appspot.com/252880043/diff/110001/tracing/build/html_to_js_generator.js#newcode33 tracing/build/html_to_js_generator.js:33: this.content = content; On 2015/07/07 16:32:52, nednguyen wrote: > ...
8 years, 9 months ago (2015-07-07 16:40:42 UTC) #11
dsinclair
https://codereview.appspot.com/252880043/diff/150001/tracing/build/d8_bootstrap.js File tracing/build/d8_bootstrap.js (right): https://codereview.appspot.com/252880043/diff/150001/tracing/build/d8_bootstrap.js#newcode158 tracing/build/d8_bootstrap.js:158: global.path_to_js_parser = '<%parse5_js_path%>'; nit: s/parse5_js_path/js_path/ https://codereview.appspot.com/252880043/diff/150001/tracing/build/d8_runner.py File tracing/build/d8_runner.py (right): ...
8 years, 9 months ago (2015-07-07 17:08:57 UTC) #12
nednguyen
https://codereview.appspot.com/252880043/diff/150001/tracing/build/html_to_js_generator.js File tracing/build/html_to_js_generator.js (right): https://codereview.appspot.com/252880043/diff/150001/tracing/build/html_to_js_generator.js#newcode10 tracing/build/html_to_js_generator.js:10: * This file is pure js instead of an ...
8 years, 9 months ago (2015-07-07 18:26:34 UTC) #13
nednguyen
https://codereview.appspot.com/252880043/diff/150001/tracing/build/html_to_js_generator.js File tracing/build/html_to_js_generator.js (right): https://codereview.appspot.com/252880043/diff/150001/tracing/build/html_to_js_generator.js#newcode96 tracing/build/html_to_js_generator.js:96: getStartingLineNumberForNodeContent(node) { On 2015/07/07 17:08:57, dsinclair wrote: > The ...
8 years, 9 months ago (2015-07-07 18:27:55 UTC) #14
dsinclair
https://codereview.appspot.com/252880043/diff/150001/tracing/build/html_to_js_generator.js File tracing/build/html_to_js_generator.js (right): https://codereview.appspot.com/252880043/diff/150001/tracing/build/html_to_js_generator.js#newcode10 tracing/build/html_to_js_generator.js:10: * This file is pure js instead of an ...
8 years, 9 months ago (2015-07-07 18:51:56 UTC) #15
nednguyen
https://codereview.appspot.com/252880043/diff/230001/tracing/build/html_to_js_generator.js File tracing/build/html_to_js_generator.js (right): https://codereview.appspot.com/252880043/diff/230001/tracing/build/html_to_js_generator.js#newcode45 tracing/build/html_to_js_generator.js:45: if (!start_location instanceof Number) { On 2015/07/07 18:51:56, dsinclair ...
8 years, 9 months ago (2015-07-07 19:58:07 UTC) #16
dsinclair
lgtm w/ nit https://codereview.appspot.com/252880043/diff/250001/tracing/build/html_to_js_generator.js File tracing/build/html_to_js_generator.js (right): https://codereview.appspot.com/252880043/diff/250001/tracing/build/html_to_js_generator.js#newcode140 tracing/build/html_to_js_generator.js:140: return undefined; Should this return [] ...
8 years, 9 months ago (2015-07-07 20:02:57 UTC) #17
nednguyen
https://codereview.appspot.com/252880043/diff/250001/tracing/build/html_to_js_generator.js File tracing/build/html_to_js_generator.js (right): https://codereview.appspot.com/252880043/diff/250001/tracing/build/html_to_js_generator.js#newcode140 tracing/build/html_to_js_generator.js:140: return undefined; On 2015/07/07 20:02:56, dsinclair wrote: > Should ...
8 years, 9 months ago (2015-07-07 20:09:43 UTC) #18
dsinclair
https://codereview.appspot.com/252880043/diff/250001/tracing/build/html_to_js_generator.js File tracing/build/html_to_js_generator.js (right): https://codereview.appspot.com/252880043/diff/250001/tracing/build/html_to_js_generator.js#newcode140 tracing/build/html_to_js_generator.js:140: return undefined; On 2015/07/07 20:09:43, nednguyen wrote: > On ...
8 years, 9 months ago (2015-07-07 20:11:10 UTC) #19
nednguyen
https://codereview.appspot.com/252880043/diff/250001/tracing/build/html_to_js_generator.js File tracing/build/html_to_js_generator.js (right): https://codereview.appspot.com/252880043/diff/250001/tracing/build/html_to_js_generator.js#newcode140 tracing/build/html_to_js_generator.js:140: return undefined; On 2015/07/07 20:11:09, dsinclair wrote: > On ...
8 years, 9 months ago (2015-07-07 20:23:57 UTC) #20
nednguyen
8 years, 9 months ago (2015-07-07 20:25:44 UTC) #21
Message was sent while issue was closed.
Committed patchset #7 (id:290001) manually as
b734ae94ff81ed6de98648db8f7357b9129d3939 (presubmit successful).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b