RESOLVED FIXED Bug 176441
Web Inspector: make Canvas recording tests more human readable
https://bugs.webkit.org/show_bug.cgi?id=176441
Summary Web Inspector: make Canvas recording tests more human readable
Devin Rousso
Reported 2017-09-05 22:36:19 PDT
Instead of calling JSON.stringify on the payload, we can format the output ourselves and try to show the data in its non-deduplicated state (after swizzling).
Attachments
Patch (279.37 KB, patch)
2017-09-10 00:03 PDT, Devin Rousso
no flags
Archive of layout-test-results from ews100 for mac-elcapitan (1.40 MB, application/zip)
2017-09-10 01:10 PDT, Build Bot
no flags
Archive of layout-test-results from ews106 for mac-elcapitan-wk2 (1.54 MB, application/zip)
2017-09-10 01:16 PDT, Build Bot
no flags
Archive of layout-test-results from ews114 for mac-elcapitan (2.22 MB, application/zip)
2017-09-10 01:30 PDT, Build Bot
no flags
Patch (279.49 KB, patch)
2017-09-10 15:07 PDT, Devin Rousso
no flags
Archive of layout-test-results from ews105 for mac-elcapitan-wk2 (1.48 MB, application/zip)
2017-09-10 16:19 PDT, Build Bot
no flags
Patch (309.08 KB, patch)
2017-09-12 14:31 PDT, Devin Rousso
no flags
Archive of layout-test-results from ews107 for mac-elcapitan-wk2 (1.58 MB, application/zip)
2017-09-12 15:45 PDT, Build Bot
no flags
Patch (309.21 KB, patch)
2017-09-13 23:14 PDT, Devin Rousso
no flags
Archive of layout-test-results from ews112 for mac-elcapitan (2.21 MB, application/zip)
2017-09-14 00:41 PDT, Build Bot
no flags
Patch (309.95 KB, patch)
2017-09-14 00:58 PDT, Devin Rousso
no flags
Archive of layout-test-results from ews114 for mac-elcapitan (2.17 MB, application/zip)
2017-09-14 02:30 PDT, Build Bot
no flags
Patch (310.00 KB, patch)
2017-09-14 04:14 PDT, Devin Rousso
no flags
Patch (273.97 KB, patch)
2017-09-14 17:46 PDT, Devin Rousso
no flags
Archive of layout-test-results from ews112 for mac-elcapitan (2.27 MB, application/zip)
2017-09-14 18:52 PDT, Build Bot
no flags
Patch (274.76 KB, patch)
2017-09-14 22:18 PDT, Devin Rousso
no flags
Blaze Burg
Comment 1 2017-09-06 09:06:39 PDT
This is a great idea.
Devin Rousso
Comment 2 2017-09-10 00:03:11 PDT
Build Bot
Comment 3 2017-09-10 01:10:25 PDT
Comment on attachment 320383 [details] Patch Attachment 320383 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/4502493 New failing tests: inspector/canvas/recording-2d.html inspector/canvas/recording-webgl-snapshots.html
Build Bot
Comment 4 2017-09-10 01:10:26 PDT
Created attachment 320386 [details] Archive of layout-test-results from ews100 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 5 2017-09-10 01:16:15 PDT
Comment on attachment 320383 [details] Patch Attachment 320383 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/4502501 New failing tests: inspector/canvas/recording-webgl-snapshots.html
Build Bot
Comment 6 2017-09-10 01:16:17 PDT
Created attachment 320388 [details] Archive of layout-test-results from ews106 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 7 2017-09-10 01:30:25 PDT
Comment on attachment 320383 [details] Patch Attachment 320383 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/4502502 New failing tests: inspector/canvas/recording-2d.html inspector/canvas/recording-webgl-snapshots.html
Build Bot
Comment 8 2017-09-10 01:30:26 PDT
Created attachment 320389 [details] Archive of layout-test-results from ews114 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews114 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Devin Rousso
Comment 9 2017-09-10 15:07:21 PDT
Build Bot
Comment 10 2017-09-10 16:19:37 PDT
Comment on attachment 320403 [details] Patch Attachment 320403 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/4507030 New failing tests: inspector/canvas/recording-2d.html
Build Bot
Comment 11 2017-09-10 16:19:38 PDT
Created attachment 320405 [details] Archive of layout-test-results from ews105 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Joseph Pecoraro
Comment 12 2017-09-11 19:49:48 PDT
Comment on attachment 320403 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=320403&action=review Awesome! r=me > LayoutTests/inspector/canvas/resources/recording-utilities.js:71 > + if (action.parameters[i] != action._payloadParameters[i] && Number.isInteger(action._payloadParameters[i])) Style: Can we use `!==` here?
Joseph Pecoraro
Comment 13 2017-09-11 19:50:48 PDT
Comment on attachment 320403 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=320403&action=review > LayoutTests/inspector/canvas/resources/recording-utilities.js:81 > + for (let i = 0; i < action.trace.length; ++i) { You might want to use `k` instead of `i` again given you are already inside of an `i`. This would trigger "shadow" linter warnings, but it does behave fine right now, its just weird form.
Devin Rousso
Comment 14 2017-09-11 21:33:52 PDT
Comment on attachment 320403 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=320403&action=review >> LayoutTests/inspector/canvas/resources/recording-utilities.js:71 >> + if (action.parameters[i] != action._payloadParameters[i] && Number.isInteger(action._payloadParameters[i])) > > Style: Can we use `!==` here? The main reason for not using `!==` is that `1 !== true`, which is what happens when we swizzle boolean values. I could add another case for that, but I figured that this was slightly cleaner. >> LayoutTests/inspector/canvas/resources/recording-utilities.js:81 >> + for (let i = 0; i < action.trace.length; ++i) { > > You might want to use `k` instead of `i` again given you are already inside of an `i`. This would trigger "shadow" linter warnings, but it does behave fine right now, its just weird form. Crap. Weird that ESLint didn't show it :(
Devin Rousso
Comment 15 2017-09-12 14:31:49 PDT
Build Bot
Comment 16 2017-09-12 15:45:12 PDT
Comment on attachment 320567 [details] Patch Attachment 320567 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/4527312 New failing tests: inspector/canvas/recording-2d.html
Build Bot
Comment 17 2017-09-12 15:45:13 PDT
Created attachment 320574 [details] Archive of layout-test-results from ews107 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Devin Rousso
Comment 18 2017-09-13 23:14:37 PDT
Build Bot
Comment 19 2017-09-14 00:41:39 PDT
Comment on attachment 320730 [details] Patch Attachment 320730 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/4542658 New failing tests: inspector/canvas/recording-webgl.html
Build Bot
Comment 20 2017-09-14 00:41:40 PDT
Created attachment 320741 [details] Archive of layout-test-results from ews112 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews112 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Devin Rousso
Comment 21 2017-09-14 00:58:04 PDT
Build Bot
Comment 22 2017-09-14 02:30:50 PDT
Comment on attachment 320743 [details] Patch Attachment 320743 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/4543612 New failing tests: inspector/canvas/recording-webgl.html
Build Bot
Comment 23 2017-09-14 02:30:51 PDT
Created attachment 320751 [details] Archive of layout-test-results from ews114 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews114 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Devin Rousso
Comment 24 2017-09-14 04:14:05 PDT
Devin Rousso
Comment 25 2017-09-14 17:46:20 PDT
Build Bot
Comment 26 2017-09-14 18:52:45 PDT
Comment on attachment 320856 [details] Patch Attachment 320856 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/4552934 New failing tests: inspector/canvas/recording-webgl.html
Build Bot
Comment 27 2017-09-14 18:52:48 PDT
Created attachment 320861 [details] Archive of layout-test-results from ews112 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews112 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Devin Rousso
Comment 28 2017-09-14 22:18:24 PDT
Joseph Pecoraro
Comment 29 2017-09-18 11:13:35 PDT
Comment on attachment 320868 [details] Patch r=me!
WebKit Commit Bot
Comment 30 2017-09-18 15:27:09 PDT
Comment on attachment 320868 [details] Patch Clearing flags on attachment: 320868 Committed r222182: <http://trac.webkit.org/changeset/222182>
WebKit Commit Bot
Comment 31 2017-09-18 15:27:11 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 32 2017-09-27 12:53:24 PDT
Note You need to log in before you can comment on or make changes to this bug.