Web Inspector: improve invalid Audit/Recording JSON error messages
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Jan 2019 09:27:50 +0000 (09:27 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Jan 2019 09:27:50 +0000 (09:27 +0000)
commit528c2ccacafeebb71c4a203f49a82667a2f74bba
tree00e330841dbc751d70c13f4d85460db232604a6e
parentc81609283fd9ccec327babf37633908fb522119e
Web Inspector: improve invalid Audit/Recording JSON error messages
https://bugs.webkit.org/show_bug.cgi?id=193476
<rdar://problem/47303659>

Reviewed by Joseph Pecoraro.

Source/WebInspectorUI:

* UserInterface/Models/AuditTestBase.js:
(WI.AuditTestBase):
* UserInterface/Models/AuditTestCase.js:
(WI.AuditTestCase.async fromPayload):
* UserInterface/Models/AuditTestGroup.js:
(WI.AuditTestGroup.async fromPayload):
* UserInterface/Models/AuditTestCaseResult.js:
(WI.AuditTestCaseResult.async fromPayload.checkArray):
(WI.AuditTestCaseResult.async fromPayload):
* UserInterface/Models/AuditTestGroupResult.js:
(WI.AuditTestGroupResult.async fromPayload):
* UserInterface/Controllers/AuditManager.js:
(WI.AuditManager.synthesizeWarning): Added.
(WI.AuditManager.synthesizeError):
(WI.AuditManager.prototype.async processJSON):

* UserInterface/Models/Recording.js:
(WI.Recording.fromPayload):
(WI.Recording.synthesizeWarning): Added.
(WI.Recording.synthesizeError):
* UserInterface/Models/RecordingFrame.js:
(WI.RecordingFrame.fromPayload):
* UserInterface/Models/RecordingAction.js:
(WI.RecordingAction.fromPayload):
(WI.RecordingAction.prototype.async swizzle):
(WI.RecordingAction.prototype.apply):
* UserInterface/Controllers/CanvasManager.js:
(WI.CanvasManager.prototype.processJSON):

* Localizations/en.lproj/localizedStrings.js:

LayoutTests:

* inspector/model/auditTestCase.html:
* inspector/model/auditTestCase-expected.txt:
* inspector/model/auditTestCaseResult-expected.txt:
* inspector/model/auditTestGroup.html:
* inspector/model/auditTestGroup-expected.txt:
* inspector/model/auditTestGroupResult-expected.txt:
* inspector/model/recording-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240471 268f45cc-cd09-0410-ab3c-d52691b4dbfc
20 files changed:
LayoutTests/ChangeLog
LayoutTests/inspector/model/auditTestCase-expected.txt
LayoutTests/inspector/model/auditTestCase.html
LayoutTests/inspector/model/auditTestCaseResult-expected.txt
LayoutTests/inspector/model/auditTestGroup-expected.txt
LayoutTests/inspector/model/auditTestGroup.html
LayoutTests/inspector/model/auditTestGroupResult-expected.txt
LayoutTests/inspector/model/recording-expected.txt
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js
Source/WebInspectorUI/UserInterface/Controllers/AuditManager.js
Source/WebInspectorUI/UserInterface/Controllers/CanvasManager.js
Source/WebInspectorUI/UserInterface/Models/AuditTestBase.js
Source/WebInspectorUI/UserInterface/Models/AuditTestCase.js
Source/WebInspectorUI/UserInterface/Models/AuditTestCaseResult.js
Source/WebInspectorUI/UserInterface/Models/AuditTestGroup.js
Source/WebInspectorUI/UserInterface/Models/AuditTestGroupResult.js
Source/WebInspectorUI/UserInterface/Models/Recording.js
Source/WebInspectorUI/UserInterface/Models/RecordingAction.js
Source/WebInspectorUI/UserInterface/Models/RecordingFrame.js