Web Inspector: simplify WebInspector with WI
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Aug 2017 03:09:57 +0000 (03:09 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Aug 2017 03:09:57 +0000 (03:09 +0000)
https://bugs.webkit.org/show_bug.cgi?id=175058

Reviewed by Joseph Pecoraro.

Source/WebInspectorUI:

* .eslintrc:

* Tools/PrettyPrinting/FormatterDebug.js:
* Tools/PrettyPrinting/index.html:

* UserInterface/Main.html:
* UserInterface/Test.html:

* UserInterface/Base/*.js:
* UserInterface/Controllers/*.js:
* UserInterface/Debug/*.js:
* UserInterface/Models/*.js:
* UserInterface/Protocol/*.js:
* UserInterface/Proxies/*.js:
* UserInterface/Test/*.js:
* UserInterface/Views/*.js:

Tools:

* Scripts/check-inspector-strings:
(extract_ui_strings):
* Scripts/extract-localizable-js-strings:

LayoutTests:

* http/tests/inspector/**/*.html:
* http/tests/websocket/tests/hybi/inspector/**/*.html:
* inspector/**/*.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@220119 268f45cc-cd09-0410-ab3c-d52691b4dbfc

776 files changed:
LayoutTests/ChangeLog
LayoutTests/http/tests/inspector/console/cross-domain-inspected-node-access.html
LayoutTests/http/tests/inspector/debugger/debugger-test.js
LayoutTests/http/tests/inspector/dom/disconnect-dom-tree-after-main-frame-navigation.html
LayoutTests/http/tests/inspector/dom/shapes-test.js
LayoutTests/http/tests/inspector/network/copy-as-curl.html
LayoutTests/http/tests/inspector/network/fetch-network-data.html
LayoutTests/http/tests/inspector/network/fetch-response-body.html
LayoutTests/http/tests/inspector/network/loadResource-insecure-resource.html
LayoutTests/http/tests/inspector/network/resource-metrics.html
LayoutTests/http/tests/inspector/network/resource-mime-type.html
LayoutTests/http/tests/inspector/network/resource-request-headers.html
LayoutTests/http/tests/inspector/network/resource-response-source-disk-cache.html
LayoutTests/http/tests/inspector/network/resource-response-source-memory-cache-revalidate-expired-only.html
LayoutTests/http/tests/inspector/network/resource-response-source-memory-cache.html
LayoutTests/http/tests/inspector/network/resource-response-source-network.html
LayoutTests/http/tests/inspector/network/resource-sizes-disk-cache.html
LayoutTests/http/tests/inspector/network/resource-sizes-memory-cache.html
LayoutTests/http/tests/inspector/network/resource-sizes-network.html
LayoutTests/http/tests/inspector/network/resource-timing.html
LayoutTests/http/tests/inspector/network/resources/resource-size-test.js
LayoutTests/http/tests/inspector/network/set-resource-caching-disabled-disk-cache.html
LayoutTests/http/tests/inspector/network/set-resource-caching-disabled-memory-cache.html
LayoutTests/http/tests/inspector/network/xhr-request-data-encoded-correctly.html
LayoutTests/http/tests/inspector/network/xhr-response-body.html
LayoutTests/http/tests/inspector/resources/probe-test.js
LayoutTests/http/tests/inspector/worker/blob-script-with-cross-domain-imported-scripts.html
LayoutTests/http/tests/websocket/tests/hybi/inspector/before-load.html
LayoutTests/http/tests/websocket/tests/hybi/inspector/binary.html
LayoutTests/http/tests/websocket/tests/hybi/inspector/client-close.html
LayoutTests/http/tests/websocket/tests/hybi/inspector/resolveWebSocket.html
LayoutTests/http/tests/websocket/tests/hybi/inspector/send-and-receive.html
LayoutTests/http/tests/websocket/tests/hybi/inspector/server-close.html
LayoutTests/inspector/canvas/context-attributes.html
LayoutTests/inspector/canvas/create-context-2d.html
LayoutTests/inspector/canvas/create-context-webgl.html
LayoutTests/inspector/canvas/create-context-webgl2.html
LayoutTests/inspector/canvas/create-context-webgpu.html
LayoutTests/inspector/canvas/css-canvas-clients.html
LayoutTests/inspector/canvas/memory.html
LayoutTests/inspector/canvas/recording-2d.html
LayoutTests/inspector/canvas/requestContent-2d.html
LayoutTests/inspector/canvas/requestContent-webgl.html
LayoutTests/inspector/canvas/requestContent-webgl2.html
LayoutTests/inspector/canvas/requestNode.html
LayoutTests/inspector/canvas/resolveCanvasContext-2d.html
LayoutTests/inspector/canvas/resolveCanvasContext-webgl.html
LayoutTests/inspector/canvas/resolveCanvasContext-webgl2.html
LayoutTests/inspector/canvas/resolveCanvasContext-webgpu.html
LayoutTests/inspector/canvas/resources/create-context-utilities.js
LayoutTests/inspector/codemirror/resources/prettyprinting/utilities.js
LayoutTests/inspector/console/addInspectedNode.html
LayoutTests/inspector/console/clearMessages.html
LayoutTests/inspector/console/command-line-api-copy.html
LayoutTests/inspector/console/command-line-api.html
LayoutTests/inspector/console/console-api.html
LayoutTests/inspector/console/console-count.html
LayoutTests/inspector/console/console-log-proxy.html
LayoutTests/inspector/console/console-table.html
LayoutTests/inspector/console/console-time.html
LayoutTests/inspector/console/js-isLikelyStackTrace-expected.txt
LayoutTests/inspector/console/js-isLikelyStackTrace.html
LayoutTests/inspector/console/message-stack-trace.html
LayoutTests/inspector/console/messageAdded-from-named-evaluations.html
LayoutTests/inspector/console/messageRepeatCountUpdated.html
LayoutTests/inspector/console/messagesCleared.html
LayoutTests/inspector/controller/runtime-controller-import.html
LayoutTests/inspector/controller/runtime-controller.html
LayoutTests/inspector/css/add-rule.html
LayoutTests/inspector/css/createStyleSheet.html
LayoutTests/inspector/css/css-property.html
LayoutTests/inspector/css/generate-css-rule-string.html
LayoutTests/inspector/css/getAllStyleSheets.html
LayoutTests/inspector/css/manager-preferredInspectorStyleSheetForFrame.html
LayoutTests/inspector/css/matched-style-properties.html
LayoutTests/inspector/css/modify-rule-selector.html
LayoutTests/inspector/css/pseudo-element-matches-for-pseudo-element-node.html
LayoutTests/inspector/css/pseudo-element-matches.html
LayoutTests/inspector/css/selector-dynamic-specificity.html
LayoutTests/inspector/css/selector-specificity.html
LayoutTests/inspector/css/shadow-scoped-style.html
LayoutTests/inspector/css/stylesheet-events-basic.html
LayoutTests/inspector/css/stylesheet-events-imports.html
LayoutTests/inspector/css/stylesheet-events-inspector-stylesheet.html
LayoutTests/inspector/css/stylesheet-events-multiple-documents.html
LayoutTests/inspector/css/stylesheet-with-mutations.html
LayoutTests/inspector/debugger/async-stack-trace.html
LayoutTests/inspector/debugger/break-on-exception-throw-in-promise.html
LayoutTests/inspector/debugger/break-on-exception.html
LayoutTests/inspector/debugger/break-on-uncaught-exception-throw-in-promise.html
LayoutTests/inspector/debugger/break-on-uncaught-exception.html
LayoutTests/inspector/debugger/breakpoint-action-eval.html
LayoutTests/inspector/debugger/breakpoint-action-log.html
LayoutTests/inspector/debugger/breakpoint-columns.html
LayoutTests/inspector/debugger/breakpoint-scope.html
LayoutTests/inspector/debugger/breakpoints-disabled.html
LayoutTests/inspector/debugger/command-line-api-exception-nested-catch.html
LayoutTests/inspector/debugger/command-line-api-exception.html
LayoutTests/inspector/debugger/continueUntilNextRunLoop.html
LayoutTests/inspector/debugger/csp-exceptions.html
LayoutTests/inspector/debugger/debugger-stack-overflow.html
LayoutTests/inspector/debugger/evaluateOnCallFrame-CommandLineAPI.html
LayoutTests/inspector/debugger/js-stacktrace.html
LayoutTests/inspector/debugger/no-pause-out-of-memory-exception.html
LayoutTests/inspector/debugger/no-pause-stack-overflow-exception.html
LayoutTests/inspector/debugger/pause-reason.html
LayoutTests/inspector/debugger/paused-scopes.html
LayoutTests/inspector/debugger/probe-manager-add-remove-actions.html
LayoutTests/inspector/debugger/resources/log-active-stack-trace.js
LayoutTests/inspector/debugger/resources/log-pause-location.js
LayoutTests/inspector/debugger/search-scripts.html
LayoutTests/inspector/debugger/setPauseOnAssertions.html
LayoutTests/inspector/debugger/sourceURL-repeated-identical-executions.html
LayoutTests/inspector/debugger/stepping/stepInto.html
LayoutTests/inspector/debugger/stepping/stepOut.html
LayoutTests/inspector/debugger/stepping/stepOver.html
LayoutTests/inspector/debugger/stepping/stepping-through-autoContinue-breakpoint.html
LayoutTests/inspector/debugger/tail-deleted-frames-from-vm-entry.html
LayoutTests/inspector/debugger/tail-deleted-frames-this-value.html
LayoutTests/inspector/debugger/tail-deleted-frames.html
LayoutTests/inspector/debugger/tail-recursion.html
LayoutTests/inspector/debugger/truncate-async-stack-trace.html
LayoutTests/inspector/dom-debugger/dom-breakpoints.html
LayoutTests/inspector/dom-debugger/xhr-breakpoints.html
LayoutTests/inspector/dom/content-flow-content-nodes.html
LayoutTests/inspector/dom/content-flow-content-removal.html
LayoutTests/inspector/dom/content-flow-list.html
LayoutTests/inspector/dom/content-node-region-info.html
LayoutTests/inspector/dom/csp-big5-hash.html
LayoutTests/inspector/dom/csp-hash.html
LayoutTests/inspector/dom/customElementState.html
LayoutTests/inspector/dom/domutilities-csspath-expected.txt
LayoutTests/inspector/dom/domutilities-csspath.html
LayoutTests/inspector/dom/domutilities-path-dump-expected.txt
LayoutTests/inspector/dom/domutilities-path-dump.html
LayoutTests/inspector/dom/domutilities-xpath-expected.txt
LayoutTests/inspector/dom/domutilities-xpath.html
LayoutTests/inspector/dom/getEventListenersForNode.html
LayoutTests/inspector/dom/getOuterHTML.html
LayoutTests/inspector/dom/hideHighlight.html
LayoutTests/inspector/dom/highlightFrame.html
LayoutTests/inspector/dom/highlightNode.html
LayoutTests/inspector/dom/highlightNodeList.html
LayoutTests/inspector/dom/highlightQuad.html
LayoutTests/inspector/dom/highlightRect.html
LayoutTests/inspector/dom/highlightSelector.html
LayoutTests/inspector/dom/pseudo-element-dynamic.html
LayoutTests/inspector/dom/pseudo-element-static.html
LayoutTests/inspector/dom/push-node-by-path-to-frontend.html
LayoutTests/inspector/dom/setOuterHTML-no-document-element.html
LayoutTests/inspector/dom/setOuterHTML.html
LayoutTests/inspector/dom/shadow-and-non-shadow-children.html
LayoutTests/inspector/dom/shadowRootType.html
LayoutTests/inspector/dom/template-content.html
LayoutTests/inspector/formatting/formatting-json.html
LayoutTests/inspector/formatting/resources/javascript-tests/sample-normal-utilities-expected.js
LayoutTests/inspector/formatting/resources/javascript-tests/sample-normal-utilities.js
LayoutTests/inspector/formatting/resources/javascript-tests/sample-webinspector-object-expected.js
LayoutTests/inspector/formatting/resources/javascript-tests/sample-webinspector-object.js
LayoutTests/inspector/formatting/resources/utilities.js
LayoutTests/inspector/heap/garbageCollected.html
LayoutTests/inspector/heap/gc.html
LayoutTests/inspector/heap/getPreview.html
LayoutTests/inspector/heap/getRemoteObject.html
LayoutTests/inspector/heap/snapshot.html
LayoutTests/inspector/indexeddb/clearObjectStore.html
LayoutTests/inspector/indexeddb/deleteDatabaseNamesWithSpace.html
LayoutTests/inspector/indexeddb/requestData.html
LayoutTests/inspector/indexeddb/requestDatabase.html
LayoutTests/inspector/indexeddb/requestDatabaseNames.html
LayoutTests/inspector/injected-script/observable.html
LayoutTests/inspector/model/color-expected.txt
LayoutTests/inspector/model/color.html
LayoutTests/inspector/model/frame-extra-scripts-expected.txt
LayoutTests/inspector/model/frame-extra-scripts.html
LayoutTests/inspector/model/gradient-expected.txt
LayoutTests/inspector/model/gradient.html
LayoutTests/inspector/model/parse-script-syntax-tree.html
LayoutTests/inspector/model/recording-expected.txt
LayoutTests/inspector/model/recording.html
LayoutTests/inspector/model/remote-object-dom.html
LayoutTests/inspector/model/remote-object-fake-object.html
LayoutTests/inspector/model/remote-object-get-properties.html
LayoutTests/inspector/model/remote-object-mutated-iterators.html
LayoutTests/inspector/model/remote-object-weak-collection.html
LayoutTests/inspector/model/remote-object.html
LayoutTests/inspector/model/resources/remote-object-utilities.js
LayoutTests/inspector/model/scope-chain-node-expected.txt
LayoutTests/inspector/model/scope-chain-node.html
LayoutTests/inspector/model/script-resource-relationship-expected.txt
LayoutTests/inspector/model/script-resource-relationship.html
LayoutTests/inspector/model/script-sourceType-expected.txt
LayoutTests/inspector/model/script-sourceType.html
LayoutTests/inspector/model/stack-trace-expected.txt
LayoutTests/inspector/model/stack-trace.html
LayoutTests/inspector/network/client-blocked-load.html
LayoutTests/inspector/network/xhr-json-blob-has-content.html
LayoutTests/inspector/page/filter-cookies-for-domain.html
LayoutTests/inspector/page/main-frame-resource.html
LayoutTests/inspector/runtime/change-execution-context-identifier.html
LayoutTests/inspector/runtime/getPreview.html
LayoutTests/inspector/runtime/saveResult.html
LayoutTests/inspector/sampling-profiler/basic.html
LayoutTests/inspector/sampling-profiler/call-frame-with-dom-functions.html
LayoutTests/inspector/sampling-profiler/eval-source-url.html
LayoutTests/inspector/sampling-profiler/expression-location-info.html
LayoutTests/inspector/sampling-profiler/many-call-frames.html
LayoutTests/inspector/sampling-profiler/named-function-expression.html
LayoutTests/inspector/storage/domStorage-events-expected.txt
LayoutTests/inspector/storage/domStorage-events.html
LayoutTests/inspector/timeline/debugger-paused-while-recording.html
LayoutTests/inspector/timeline/exception-in-injected-script-while-recording.html
LayoutTests/inspector/timeline/recording-start-stop-timestamps.html
LayoutTests/inspector/unit-tests/breakpoint-log-message-lexer.html
LayoutTests/inspector/unit-tests/collection-expected.txt
LayoutTests/inspector/unit-tests/collection.html
LayoutTests/inspector/unit-tests/event-listener-expected.txt
LayoutTests/inspector/unit-tests/event-listener-set-expected.txt
LayoutTests/inspector/unit-tests/event-listener-set.html
LayoutTests/inspector/unit-tests/event-listener.html
LayoutTests/inspector/unit-tests/heap-snapshot-collection-event.html
LayoutTests/inspector/unit-tests/heap-snapshot.html
LayoutTests/inspector/unit-tests/object-expected.txt
LayoutTests/inspector/unit-tests/object.html
LayoutTests/inspector/unit-tests/resource-collection-expected.txt
LayoutTests/inspector/unit-tests/resource-collection.html
LayoutTests/inspector/unit-tests/resource-query-controller-expected.txt
LayoutTests/inspector/unit-tests/resource-query-controller.html
LayoutTests/inspector/unit-tests/target-manager-expected.txt
LayoutTests/inspector/unit-tests/target-manager.html
LayoutTests/inspector/unit-tests/test-harness-expect-functions.html
LayoutTests/inspector/unit-tests/text-utilities-expected.txt
LayoutTests/inspector/unit-tests/text-utilities.html
LayoutTests/inspector/unit-tests/wrapped-promise.html
LayoutTests/inspector/unit-tests/yieldable-task-expected.txt
LayoutTests/inspector/unit-tests/yieldable-task.html
LayoutTests/inspector/worker/console-basic.html
LayoutTests/inspector/worker/debugger-multiple-targets-pause.html
LayoutTests/inspector/worker/debugger-pause.html
LayoutTests/inspector/worker/debugger-scripts.html
LayoutTests/inspector/worker/debugger-shared-breakpoint.html
LayoutTests/inspector/worker/resources-in-worker.html
LayoutTests/inspector/worker/runtime-basic.html
Source/WebInspectorUI/.eslintrc
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/Tools/PrettyPrinting/FormatterDebug.js
Source/WebInspectorUI/Tools/PrettyPrinting/index.html
Source/WebInspectorUI/UserInterface/Base/DOMUtilities.js
Source/WebInspectorUI/UserInterface/Base/EventListener.js
Source/WebInspectorUI/UserInterface/Base/EventListenerSet.js
Source/WebInspectorUI/UserInterface/Base/FileUtilities.js
Source/WebInspectorUI/UserInterface/Base/LoadLocalizedStrings.js
Source/WebInspectorUI/UserInterface/Base/MIMETypeUtilities.js
Source/WebInspectorUI/UserInterface/Base/Main.js
Source/WebInspectorUI/UserInterface/Base/Object.js
Source/WebInspectorUI/UserInterface/Base/Platform.js
Source/WebInspectorUI/UserInterface/Base/Setting.js
Source/WebInspectorUI/UserInterface/Base/TextUtilities.js
Source/WebInspectorUI/UserInterface/Base/URLUtilities.js
Source/WebInspectorUI/UserInterface/Base/Utilities.js
Source/WebInspectorUI/UserInterface/Base/WebInspector.js
Source/WebInspectorUI/UserInterface/Base/YieldableTask.js
Source/WebInspectorUI/UserInterface/Controllers/AnalyzerManager.js
Source/WebInspectorUI/UserInterface/Controllers/Annotator.js
Source/WebInspectorUI/UserInterface/Controllers/ApplicationCacheManager.js
Source/WebInspectorUI/UserInterface/Controllers/BasicBlockAnnotator.js
Source/WebInspectorUI/UserInterface/Controllers/BranchManager.js
Source/WebInspectorUI/UserInterface/Controllers/BreakpointLogMessageLexer.js
Source/WebInspectorUI/UserInterface/Controllers/BreakpointPopoverController.js
Source/WebInspectorUI/UserInterface/Controllers/CSSStyleManager.js
Source/WebInspectorUI/UserInterface/Controllers/CanvasManager.js
Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorBezierEditingController.js
Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorColorEditingController.js
Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorCompletionController.js
Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorDragToAdjustNumberController.js
Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorEditingController.js
Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorGradientEditingController.js
Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorSpringEditingController.js
Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorTextKillController.js
Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorTokenTrackingController.js
Source/WebInspectorUI/UserInterface/Controllers/DOMBreakpointTreeController.js
Source/WebInspectorUI/UserInterface/Controllers/DOMDebuggerManager.js
Source/WebInspectorUI/UserInterface/Controllers/DOMTreeManager.js
Source/WebInspectorUI/UserInterface/Controllers/DashboardManager.js
Source/WebInspectorUI/UserInterface/Controllers/DebuggerManager.js
Source/WebInspectorUI/UserInterface/Controllers/DragToAdjustController.js
Source/WebInspectorUI/UserInterface/Controllers/Formatter.js
Source/WebInspectorUI/UserInterface/Controllers/FormatterSourceMap.js
Source/WebInspectorUI/UserInterface/Controllers/FrameResourceManager.js
Source/WebInspectorUI/UserInterface/Controllers/HeapManager.js
Source/WebInspectorUI/UserInterface/Controllers/IssueManager.js
Source/WebInspectorUI/UserInterface/Controllers/JavaScriptLogViewController.js
Source/WebInspectorUI/UserInterface/Controllers/JavaScriptRuntimeCompletionProvider.js
Source/WebInspectorUI/UserInterface/Controllers/LayerTreeManager.js
Source/WebInspectorUI/UserInterface/Controllers/LogManager.js
Source/WebInspectorUI/UserInterface/Controllers/MemoryManager.js
Source/WebInspectorUI/UserInterface/Controllers/ProbeManager.js
Source/WebInspectorUI/UserInterface/Controllers/ResourceQueryController.js
Source/WebInspectorUI/UserInterface/Controllers/RuntimeManager.js
Source/WebInspectorUI/UserInterface/Controllers/SourceMapManager.js
Source/WebInspectorUI/UserInterface/Controllers/StorageManager.js
Source/WebInspectorUI/UserInterface/Controllers/TargetManager.js
Source/WebInspectorUI/UserInterface/Controllers/TimelineManager.js
Source/WebInspectorUI/UserInterface/Controllers/TypeTokenAnnotator.js
Source/WebInspectorUI/UserInterface/Controllers/VisualStyleCompletionsController.js
Source/WebInspectorUI/UserInterface/Controllers/WorkerManager.js
Source/WebInspectorUI/UserInterface/Controllers/XHRBreakpointTreeController.js
Source/WebInspectorUI/UserInterface/Debug/Bootstrap.js
Source/WebInspectorUI/UserInterface/Debug/CapturingProtocolTracer.js
Source/WebInspectorUI/UserInterface/Debug/ProtocolTrace.js
Source/WebInspectorUI/UserInterface/Debug/UncaughtExceptionReporter.js
Source/WebInspectorUI/UserInterface/Main.html
Source/WebInspectorUI/UserInterface/Models/AnalyzerMessage.js
Source/WebInspectorUI/UserInterface/Models/ApplicationCacheFrame.js
Source/WebInspectorUI/UserInterface/Models/ApplicationCacheManifest.js
Source/WebInspectorUI/UserInterface/Models/BackForwardEntry.js
Source/WebInspectorUI/UserInterface/Models/Branch.js
Source/WebInspectorUI/UserInterface/Models/Breakpoint.js
Source/WebInspectorUI/UserInterface/Models/BreakpointAction.js
Source/WebInspectorUI/UserInterface/Models/CSSCompletions.js
Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js
Source/WebInspectorUI/UserInterface/Models/CSSMedia.js
Source/WebInspectorUI/UserInterface/Models/CSSProperty.js
Source/WebInspectorUI/UserInterface/Models/CSSRule.js
Source/WebInspectorUI/UserInterface/Models/CSSSelector.js
Source/WebInspectorUI/UserInterface/Models/CSSStyleDeclaration.js
Source/WebInspectorUI/UserInterface/Models/CSSStyleSheet.js
Source/WebInspectorUI/UserInterface/Models/CallFrame.js
Source/WebInspectorUI/UserInterface/Models/CallingContextTree.js
Source/WebInspectorUI/UserInterface/Models/CallingContextTreeNode.js
Source/WebInspectorUI/UserInterface/Models/Canvas.js
Source/WebInspectorUI/UserInterface/Models/Collection.js
Source/WebInspectorUI/UserInterface/Models/CollectionEntry.js
Source/WebInspectorUI/UserInterface/Models/CollectionEntryPreview.js
Source/WebInspectorUI/UserInterface/Models/Color.js
Source/WebInspectorUI/UserInterface/Models/ConsoleCommandResultMessage.js
Source/WebInspectorUI/UserInterface/Models/ConsoleMessage.js
Source/WebInspectorUI/UserInterface/Models/ContentFlow.js
Source/WebInspectorUI/UserInterface/Models/CookieStorageObject.js
Source/WebInspectorUI/UserInterface/Models/DOMBreakpoint.js
Source/WebInspectorUI/UserInterface/Models/DOMNode.js
Source/WebInspectorUI/UserInterface/Models/DOMNodeStyles.js
Source/WebInspectorUI/UserInterface/Models/DOMSearchMatchObject.js
Source/WebInspectorUI/UserInterface/Models/DOMStorageObject.js
Source/WebInspectorUI/UserInterface/Models/DOMTree.js
Source/WebInspectorUI/UserInterface/Models/DatabaseObject.js
Source/WebInspectorUI/UserInterface/Models/DatabaseTableObject.js
Source/WebInspectorUI/UserInterface/Models/DebuggerDashboard.js
Source/WebInspectorUI/UserInterface/Models/DebuggerData.js
Source/WebInspectorUI/UserInterface/Models/DefaultDashboard.js
Source/WebInspectorUI/UserInterface/Models/ExecutionContext.js
Source/WebInspectorUI/UserInterface/Models/ExecutionContextList.js
Source/WebInspectorUI/UserInterface/Models/FPSInstrument.js
Source/WebInspectorUI/UserInterface/Models/Frame.js
Source/WebInspectorUI/UserInterface/Models/GarbageCollection.js
Source/WebInspectorUI/UserInterface/Models/Geometry.js
Source/WebInspectorUI/UserInterface/Models/Gradient.js
Source/WebInspectorUI/UserInterface/Models/HeapAllocationsInstrument.js
Source/WebInspectorUI/UserInterface/Models/HeapAllocationsTimelineRecord.js
Source/WebInspectorUI/UserInterface/Models/HeapSnapshotRootPath.js
Source/WebInspectorUI/UserInterface/Models/IndexedDatabase.js
Source/WebInspectorUI/UserInterface/Models/IndexedDatabaseObjectStore.js
Source/WebInspectorUI/UserInterface/Models/IndexedDatabaseObjectStoreIndex.js
Source/WebInspectorUI/UserInterface/Models/Instrument.js
Source/WebInspectorUI/UserInterface/Models/IssueMessage.js
Source/WebInspectorUI/UserInterface/Models/KeyboardShortcut.js
Source/WebInspectorUI/UserInterface/Models/LayoutInstrument.js
Source/WebInspectorUI/UserInterface/Models/LayoutTimelineRecord.js
Source/WebInspectorUI/UserInterface/Models/LazySourceCodeLocation.js
Source/WebInspectorUI/UserInterface/Models/LineWidget.js
Source/WebInspectorUI/UserInterface/Models/LogObject.js
Source/WebInspectorUI/UserInterface/Models/MemoryCategory.js
Source/WebInspectorUI/UserInterface/Models/MemoryInstrument.js
Source/WebInspectorUI/UserInterface/Models/MemoryPressureEvent.js
Source/WebInspectorUI/UserInterface/Models/MemoryTimeline.js
Source/WebInspectorUI/UserInterface/Models/MemoryTimelineRecord.js
Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js
Source/WebInspectorUI/UserInterface/Models/NetworkInstrument.js
Source/WebInspectorUI/UserInterface/Models/NetworkTimeline.js
Source/WebInspectorUI/UserInterface/Models/ObjectPreview.js
Source/WebInspectorUI/UserInterface/Models/Probe.js
Source/WebInspectorUI/UserInterface/Models/ProbeSet.js
Source/WebInspectorUI/UserInterface/Models/ProbeSetDataFrame.js
Source/WebInspectorUI/UserInterface/Models/ProbeSetDataTable.js
Source/WebInspectorUI/UserInterface/Models/Profile.js
Source/WebInspectorUI/UserInterface/Models/ProfileNode.js
Source/WebInspectorUI/UserInterface/Models/ProfileNodeCall.js
Source/WebInspectorUI/UserInterface/Models/PropertyDescriptor.js
Source/WebInspectorUI/UserInterface/Models/PropertyPath.js
Source/WebInspectorUI/UserInterface/Models/PropertyPreview.js
Source/WebInspectorUI/UserInterface/Models/Recording.js
Source/WebInspectorUI/UserInterface/Models/RecordingAction.js
Source/WebInspectorUI/UserInterface/Models/RecordingFrame.js
Source/WebInspectorUI/UserInterface/Models/RecordingInitialStateAction.js
Source/WebInspectorUI/UserInterface/Models/RenderingFrameTimelineRecord.js
Source/WebInspectorUI/UserInterface/Models/Resource.js
Source/WebInspectorUI/UserInterface/Models/ResourceCollection.js
Source/WebInspectorUI/UserInterface/Models/ResourceQueryMatch.js
Source/WebInspectorUI/UserInterface/Models/ResourceQueryResult.js
Source/WebInspectorUI/UserInterface/Models/ResourceTimelineRecord.js
Source/WebInspectorUI/UserInterface/Models/ResourceTimingData.js
Source/WebInspectorUI/UserInterface/Models/Revision.js
Source/WebInspectorUI/UserInterface/Models/ScopeChainNode.js
Source/WebInspectorUI/UserInterface/Models/Script.js
Source/WebInspectorUI/UserInterface/Models/ScriptInstrument.js
Source/WebInspectorUI/UserInterface/Models/ScriptSyntaxTree.js
Source/WebInspectorUI/UserInterface/Models/ScriptTimelineRecord.js
Source/WebInspectorUI/UserInterface/Models/SourceCode.js
Source/WebInspectorUI/UserInterface/Models/SourceCodeLocation.js
Source/WebInspectorUI/UserInterface/Models/SourceCodePosition.js
Source/WebInspectorUI/UserInterface/Models/SourceCodeRevision.js
Source/WebInspectorUI/UserInterface/Models/SourceCodeSearchMatchObject.js
Source/WebInspectorUI/UserInterface/Models/SourceCodeTextRange.js
Source/WebInspectorUI/UserInterface/Models/SourceCodeTimeline.js
Source/WebInspectorUI/UserInterface/Models/SourceMap.js
Source/WebInspectorUI/UserInterface/Models/SourceMapResource.js
Source/WebInspectorUI/UserInterface/Models/StackTrace.js
Source/WebInspectorUI/UserInterface/Models/StructureDescription.js
Source/WebInspectorUI/UserInterface/Models/TextMarker.js
Source/WebInspectorUI/UserInterface/Models/TextRange.js
Source/WebInspectorUI/UserInterface/Models/Timeline.js
Source/WebInspectorUI/UserInterface/Models/TimelineMarker.js
Source/WebInspectorUI/UserInterface/Models/TimelineRange.js
Source/WebInspectorUI/UserInterface/Models/TimelineRecord.js
Source/WebInspectorUI/UserInterface/Models/TimelineRecording.js
Source/WebInspectorUI/UserInterface/Models/TypeDescription.js
Source/WebInspectorUI/UserInterface/Models/TypeSet.js
Source/WebInspectorUI/UserInterface/Models/WebSocketResource.js
Source/WebInspectorUI/UserInterface/Models/WrappedPromise.js
Source/WebInspectorUI/UserInterface/Models/XHRBreakpoint.js
Source/WebInspectorUI/UserInterface/Protocol/ApplicationCacheObserver.js
Source/WebInspectorUI/UserInterface/Protocol/CSSObserver.js
Source/WebInspectorUI/UserInterface/Protocol/CanvasObserver.js
Source/WebInspectorUI/UserInterface/Protocol/Connection.js
Source/WebInspectorUI/UserInterface/Protocol/ConsoleObserver.js
Source/WebInspectorUI/UserInterface/Protocol/DOMObserver.js
Source/WebInspectorUI/UserInterface/Protocol/DOMStorageObserver.js
Source/WebInspectorUI/UserInterface/Protocol/DatabaseObserver.js
Source/WebInspectorUI/UserInterface/Protocol/DebuggerObserver.js
Source/WebInspectorUI/UserInterface/Protocol/HeapObserver.js
Source/WebInspectorUI/UserInterface/Protocol/InspectorBackend.js
Source/WebInspectorUI/UserInterface/Protocol/InspectorFrontendAPI.js
Source/WebInspectorUI/UserInterface/Protocol/InspectorObserver.js
Source/WebInspectorUI/UserInterface/Protocol/LayerTreeObserver.js
Source/WebInspectorUI/UserInterface/Protocol/LoggingProtocolTracer.js
Source/WebInspectorUI/UserInterface/Protocol/MainTarget.js
Source/WebInspectorUI/UserInterface/Protocol/MemoryObserver.js
Source/WebInspectorUI/UserInterface/Protocol/MessageDispatcher.js
Source/WebInspectorUI/UserInterface/Protocol/NetworkObserver.js
Source/WebInspectorUI/UserInterface/Protocol/PageObserver.js
Source/WebInspectorUI/UserInterface/Protocol/ProtocolTracer.js
Source/WebInspectorUI/UserInterface/Protocol/RemoteObject.js
Source/WebInspectorUI/UserInterface/Protocol/RuntimeObserver.js
Source/WebInspectorUI/UserInterface/Protocol/ScriptProfilerObserver.js
Source/WebInspectorUI/UserInterface/Protocol/Target.js
Source/WebInspectorUI/UserInterface/Protocol/TimelineObserver.js
Source/WebInspectorUI/UserInterface/Protocol/WorkerObserver.js
Source/WebInspectorUI/UserInterface/Protocol/WorkerTarget.js
Source/WebInspectorUI/UserInterface/Proxies/FormatterWorkerProxy.js
Source/WebInspectorUI/UserInterface/Proxies/HeapSnapshotDiffProxy.js
Source/WebInspectorUI/UserInterface/Proxies/HeapSnapshotEdgeProxy.js
Source/WebInspectorUI/UserInterface/Proxies/HeapSnapshotNodeProxy.js
Source/WebInspectorUI/UserInterface/Proxies/HeapSnapshotProxy.js
Source/WebInspectorUI/UserInterface/Proxies/HeapSnapshotWorkerProxy.js
Source/WebInspectorUI/UserInterface/Test.html
Source/WebInspectorUI/UserInterface/Test/Test.js
Source/WebInspectorUI/UserInterface/Test/TestHarness.js
Source/WebInspectorUI/UserInterface/Views/ActivateButtonNavigationItem.js
Source/WebInspectorUI/UserInterface/Views/ActivateButtonToolbarItem.js
Source/WebInspectorUI/UserInterface/Views/ApplicationCacheDetailsSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/ApplicationCacheFrameContentView.js
Source/WebInspectorUI/UserInterface/Views/ApplicationCacheFrameTreeElement.js
Source/WebInspectorUI/UserInterface/Views/ApplicationCacheManifestTreeElement.js
Source/WebInspectorUI/UserInterface/Views/BezierEditor.js
Source/WebInspectorUI/UserInterface/Views/BoxModelDetailsSectionRow.js
Source/WebInspectorUI/UserInterface/Views/BreakpointActionView.js
Source/WebInspectorUI/UserInterface/Views/BreakpointTreeElement.js
Source/WebInspectorUI/UserInterface/Views/ButtonNavigationItem.js
Source/WebInspectorUI/UserInterface/Views/ButtonToolbarItem.js
Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationSection.js
Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js
Source/WebInspectorUI/UserInterface/Views/CSSStyleDetailsSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/CSSStyleSheetTreeElement.js
Source/WebInspectorUI/UserInterface/Views/CallFrameTreeElement.js
Source/WebInspectorUI/UserInterface/Views/CallFrameView.js
Source/WebInspectorUI/UserInterface/Views/CanvasContentView.js
Source/WebInspectorUI/UserInterface/Views/CanvasDetailsSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/CanvasTreeElement.js
Source/WebInspectorUI/UserInterface/Views/ChartDetailsSectionRow.js
Source/WebInspectorUI/UserInterface/Views/CircleChart.js
Source/WebInspectorUI/UserInterface/Views/ClusterContentView.js
Source/WebInspectorUI/UserInterface/Views/CodeMirrorAdditions.js
Source/WebInspectorUI/UserInterface/Views/CodeMirrorEditor.js
Source/WebInspectorUI/UserInterface/Views/CodeMirrorTextMarkers.js
Source/WebInspectorUI/UserInterface/Views/CollectionContentView.js
Source/WebInspectorUI/UserInterface/Views/ColorPicker.js
Source/WebInspectorUI/UserInterface/Views/ColorWheel.js
Source/WebInspectorUI/UserInterface/Views/CompletionSuggestionsView.js
Source/WebInspectorUI/UserInterface/Views/ComputedStyleDetailsPanel.js
Source/WebInspectorUI/UserInterface/Views/ConsoleCommandView.js
Source/WebInspectorUI/UserInterface/Views/ConsoleDrawer.js
Source/WebInspectorUI/UserInterface/Views/ConsoleGroup.js
Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js
Source/WebInspectorUI/UserInterface/Views/ConsolePrompt.js
Source/WebInspectorUI/UserInterface/Views/ConsoleSession.js
Source/WebInspectorUI/UserInterface/Views/ConsoleTabContentView.js
Source/WebInspectorUI/UserInterface/Views/ContentBrowser.js
Source/WebInspectorUI/UserInterface/Views/ContentBrowserTabContentView.js
Source/WebInspectorUI/UserInterface/Views/ContentFlowDOMTreeContentView.js
Source/WebInspectorUI/UserInterface/Views/ContentFlowTreeElement.js
Source/WebInspectorUI/UserInterface/Views/ContentView.js
Source/WebInspectorUI/UserInterface/Views/ContentViewContainer.js
Source/WebInspectorUI/UserInterface/Views/ContextMenu.js
Source/WebInspectorUI/UserInterface/Views/ContextMenuUtilities.js
Source/WebInspectorUI/UserInterface/Views/ControlToolbarItem.js
Source/WebInspectorUI/UserInterface/Views/CookieStorageContentView.js
Source/WebInspectorUI/UserInterface/Views/CookieStorageTreeElement.js
Source/WebInspectorUI/UserInterface/Views/DOMBreakpointTreeElement.js
Source/WebInspectorUI/UserInterface/Views/DOMDetailsSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/DOMNodeDetailsSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/DOMNodeTreeElement.js
Source/WebInspectorUI/UserInterface/Views/DOMStorageContentView.js
Source/WebInspectorUI/UserInterface/Views/DOMStorageTreeElement.js
Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js
Source/WebInspectorUI/UserInterface/Views/DOMTreeDataGrid.js
Source/WebInspectorUI/UserInterface/Views/DOMTreeDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js
Source/WebInspectorUI/UserInterface/Views/DOMTreeElementPathComponent.js
Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.js
Source/WebInspectorUI/UserInterface/Views/DOMTreeUpdater.js
Source/WebInspectorUI/UserInterface/Views/DashboardContainerView.js
Source/WebInspectorUI/UserInterface/Views/DashboardView.js
Source/WebInspectorUI/UserInterface/Views/DataGrid.js
Source/WebInspectorUI/UserInterface/Views/DataGridNode.js
Source/WebInspectorUI/UserInterface/Views/DatabaseContentView.js
Source/WebInspectorUI/UserInterface/Views/DatabaseHostTreeElement.js
Source/WebInspectorUI/UserInterface/Views/DatabaseTableContentView.js
Source/WebInspectorUI/UserInterface/Views/DatabaseTableTreeElement.js
Source/WebInspectorUI/UserInterface/Views/DatabaseTreeElement.js
Source/WebInspectorUI/UserInterface/Views/DatabaseUserQueryErrorView.js
Source/WebInspectorUI/UserInterface/Views/DatabaseUserQuerySuccessView.js
Source/WebInspectorUI/UserInterface/Views/DatabaseUserQueryViewBase.js
Source/WebInspectorUI/UserInterface/Views/DebuggerDashboardView.js
Source/WebInspectorUI/UserInterface/Views/DebuggerSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/DebuggerTabContentView.js
Source/WebInspectorUI/UserInterface/Views/DefaultDashboardView.js
Source/WebInspectorUI/UserInterface/Views/DetailsSection.js
Source/WebInspectorUI/UserInterface/Views/DetailsSectionDataGridRow.js
Source/WebInspectorUI/UserInterface/Views/DetailsSectionGroup.js
Source/WebInspectorUI/UserInterface/Views/DetailsSectionRow.js
Source/WebInspectorUI/UserInterface/Views/DetailsSectionSimpleRow.js
Source/WebInspectorUI/UserInterface/Views/DetailsSectionTextRow.js
Source/WebInspectorUI/UserInterface/Views/DetailsSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/Dialog.js
Source/WebInspectorUI/UserInterface/Views/DividerNavigationItem.js
Source/WebInspectorUI/UserInterface/Views/EditableDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/EditingSupport.js
Source/WebInspectorUI/UserInterface/Views/ElementsTabContentView.js
Source/WebInspectorUI/UserInterface/Views/ErrorObjectView.js
Source/WebInspectorUI/UserInterface/Views/EventListenerSectionGroup.js
Source/WebInspectorUI/UserInterface/Views/FilterBar.js
Source/WebInspectorUI/UserInterface/Views/FilterBarButton.js
Source/WebInspectorUI/UserInterface/Views/FilterBarNavigationItem.js
Source/WebInspectorUI/UserInterface/Views/FindBanner.js
Source/WebInspectorUI/UserInterface/Views/FlexibleSpaceNavigationItem.js
Source/WebInspectorUI/UserInterface/Views/FolderTreeElement.js
Source/WebInspectorUI/UserInterface/Views/FolderizedTreeElement.js
Source/WebInspectorUI/UserInterface/Views/FontResourceContentView.js
Source/WebInspectorUI/UserInterface/Views/FormattedValue.js
Source/WebInspectorUI/UserInterface/Views/FrameDOMTreeContentView.js
Source/WebInspectorUI/UserInterface/Views/FrameTreeElement.js
Source/WebInspectorUI/UserInterface/Views/GeneralTabBarItem.js
Source/WebInspectorUI/UserInterface/Views/GeneralTreeElement.js
Source/WebInspectorUI/UserInterface/Views/GeneralTreeElementPathComponent.js
Source/WebInspectorUI/UserInterface/Views/GenericResourceContentView.js
Source/WebInspectorUI/UserInterface/Views/GoToLineDialog.js
Source/WebInspectorUI/UserInterface/Views/GradientEditor.js
Source/WebInspectorUI/UserInterface/Views/GradientSlider.js
Source/WebInspectorUI/UserInterface/Views/HeapAllocationsTimelineDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/HeapAllocationsTimelineDataGridNodePathComponent.js
Source/WebInspectorUI/UserInterface/Views/HeapAllocationsTimelineOverviewGraph.js
Source/WebInspectorUI/UserInterface/Views/HeapAllocationsTimelineView.js
Source/WebInspectorUI/UserInterface/Views/HeapSnapshotClassDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/HeapSnapshotClusterContentView.js
Source/WebInspectorUI/UserInterface/Views/HeapSnapshotContentView.js
Source/WebInspectorUI/UserInterface/Views/HeapSnapshotDataGridTree.js
Source/WebInspectorUI/UserInterface/Views/HeapSnapshotInstanceDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/HeapSnapshotInstanceFetchMoreDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/HierarchicalPathComponent.js
Source/WebInspectorUI/UserInterface/Views/HierarchicalPathNavigationItem.js
Source/WebInspectorUI/UserInterface/Views/HoverMenu.js
Source/WebInspectorUI/UserInterface/Views/IdleTreeElement.js
Source/WebInspectorUI/UserInterface/Views/ImageResourceContentView.js
Source/WebInspectorUI/UserInterface/Views/IndeterminateProgressSpinner.js
Source/WebInspectorUI/UserInterface/Views/IndexedDatabaseContentView.js
Source/WebInspectorUI/UserInterface/Views/IndexedDatabaseDetailsSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/IndexedDatabaseEntryDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/IndexedDatabaseHostTreeElement.js
Source/WebInspectorUI/UserInterface/Views/IndexedDatabaseObjectStoreContentView.js
Source/WebInspectorUI/UserInterface/Views/IndexedDatabaseObjectStoreIndexTreeElement.js
Source/WebInspectorUI/UserInterface/Views/IndexedDatabaseObjectStoreTreeElement.js
Source/WebInspectorUI/UserInterface/Views/IndexedDatabaseTreeElement.js
Source/WebInspectorUI/UserInterface/Views/InlineSwatch.js
Source/WebInspectorUI/UserInterface/Views/InputPopover.js
Source/WebInspectorUI/UserInterface/Views/IssueTreeElement.js
Source/WebInspectorUI/UserInterface/Views/LayerTreeDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/LayerTreeDetailsSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/LayoutTimelineDataGrid.js
Source/WebInspectorUI/UserInterface/Views/LayoutTimelineDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/LayoutTimelineOverviewGraph.js
Source/WebInspectorUI/UserInterface/Views/LayoutTimelineView.js
Source/WebInspectorUI/UserInterface/Views/LineChart.js
Source/WebInspectorUI/UserInterface/Views/LogContentView.js
Source/WebInspectorUI/UserInterface/Views/MemoryCategoryView.js
Source/WebInspectorUI/UserInterface/Views/MemoryTimelineOverviewGraph.js
Source/WebInspectorUI/UserInterface/Views/MemoryTimelineView.js
Source/WebInspectorUI/UserInterface/Views/MultipleScopeBarItem.js
Source/WebInspectorUI/UserInterface/Views/NavigationBar.js
Source/WebInspectorUI/UserInterface/Views/NavigationItem.js
Source/WebInspectorUI/UserInterface/Views/NavigationSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/NetworkGridContentView.js
Source/WebInspectorUI/UserInterface/Views/NetworkSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/NetworkTabContentView.js
Source/WebInspectorUI/UserInterface/Views/NetworkTimelineOverviewGraph.js
Source/WebInspectorUI/UserInterface/Views/NetworkTimelineView.js
Source/WebInspectorUI/UserInterface/Views/NewTabContentView.js
Source/WebInspectorUI/UserInterface/Views/ObjectPreviewView.js
Source/WebInspectorUI/UserInterface/Views/ObjectPropertiesDetailSectionRow.js
Source/WebInspectorUI/UserInterface/Views/ObjectTreeArrayIndexTreeElement.js
Source/WebInspectorUI/UserInterface/Views/ObjectTreeBaseTreeElement.js
Source/WebInspectorUI/UserInterface/Views/ObjectTreeMapEntryTreeElement.js
Source/WebInspectorUI/UserInterface/Views/ObjectTreePropertyTreeElement.js
Source/WebInspectorUI/UserInterface/Views/ObjectTreeSetIndexTreeElement.js
Source/WebInspectorUI/UserInterface/Views/ObjectTreeView.js
Source/WebInspectorUI/UserInterface/Views/OpenResourceDialog.js
Source/WebInspectorUI/UserInterface/Views/OverviewTimelineView.js
Source/WebInspectorUI/UserInterface/Views/PinnedTabBarItem.js
Source/WebInspectorUI/UserInterface/Views/Popover.js
Source/WebInspectorUI/UserInterface/Views/ProbeDetailsSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/ProbeSetDataGrid.js
Source/WebInspectorUI/UserInterface/Views/ProbeSetDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/ProbeSetDetailsSection.js
Source/WebInspectorUI/UserInterface/Views/ProfileDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/ProfileDataGridTree.js
Source/WebInspectorUI/UserInterface/Views/ProfileNodeDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/ProfileNodeTreeElement.js
Source/WebInspectorUI/UserInterface/Views/ProfileView.js
Source/WebInspectorUI/UserInterface/Views/QuickConsole.js
Source/WebInspectorUI/UserInterface/Views/QuickConsoleNavigationBar.js
Source/WebInspectorUI/UserInterface/Views/RadioButtonNavigationItem.js
Source/WebInspectorUI/UserInterface/Views/RecordingActionTreeElement.js
Source/WebInspectorUI/UserInterface/Views/RecordingContentView.js
Source/WebInspectorUI/UserInterface/Views/RecordingNavigationSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/RecordingStateDetailsSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/RecordingTabContentView.js
Source/WebInspectorUI/UserInterface/Views/RenderingFrameTimelineDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/RenderingFrameTimelineOverviewGraph.js
Source/WebInspectorUI/UserInterface/Views/RenderingFrameTimelineView.js
Source/WebInspectorUI/UserInterface/Views/Resizer.js
Source/WebInspectorUI/UserInterface/Views/ResourceClusterContentView.js
Source/WebInspectorUI/UserInterface/Views/ResourceContentView.js
Source/WebInspectorUI/UserInterface/Views/ResourceDetailsSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/ResourceSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/ResourceTimelineDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/ResourceTimingPopoverDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/ResourceTreeElement.js
Source/WebInspectorUI/UserInterface/Views/ResourcesTabContentView.js
Source/WebInspectorUI/UserInterface/Views/RulesStyleDetailsPanel.js
Source/WebInspectorUI/UserInterface/Views/RulesStyleSpreadsheetDetailsPanel.js
Source/WebInspectorUI/UserInterface/Views/SVGImageResourceClusterContentView.js
Source/WebInspectorUI/UserInterface/Views/ScopeBar.js
Source/WebInspectorUI/UserInterface/Views/ScopeBarItem.js
Source/WebInspectorUI/UserInterface/Views/ScopeChainDetailsSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/ScopeRadioButtonNavigationItem.js
Source/WebInspectorUI/UserInterface/Views/ScriptClusterTimelineView.js
Source/WebInspectorUI/UserInterface/Views/ScriptContentView.js
Source/WebInspectorUI/UserInterface/Views/ScriptDetailsTimelineView.js
Source/WebInspectorUI/UserInterface/Views/ScriptProfileTimelineView.js
Source/WebInspectorUI/UserInterface/Views/ScriptTimelineDataGrid.js
Source/WebInspectorUI/UserInterface/Views/ScriptTimelineDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/ScriptTimelineOverviewGraph.js
Source/WebInspectorUI/UserInterface/Views/ScriptTreeElement.js
Source/WebInspectorUI/UserInterface/Views/ScrubberNavigationItem.js
Source/WebInspectorUI/UserInterface/Views/SearchBar.js
Source/WebInspectorUI/UserInterface/Views/SearchResultTreeElement.js
Source/WebInspectorUI/UserInterface/Views/SearchSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/SearchTabContentView.js
Source/WebInspectorUI/UserInterface/Views/SettingEditor.js
Source/WebInspectorUI/UserInterface/Views/SettingsGroup.js
Source/WebInspectorUI/UserInterface/Views/SettingsTabContentView.js
Source/WebInspectorUI/UserInterface/Views/SettingsView.js
Source/WebInspectorUI/UserInterface/Views/Sidebar.js
Source/WebInspectorUI/UserInterface/Views/SidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/Slider.js
Source/WebInspectorUI/UserInterface/Views/SoftContextMenu.js
Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js
Source/WebInspectorUI/UserInterface/Views/SourceCodeTimelineTimelineDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/SourceCodeTimelineTreeElement.js
Source/WebInspectorUI/UserInterface/Views/SourceCodeTreeElement.js
Source/WebInspectorUI/UserInterface/Views/SourceMapResourceTreeElement.js
Source/WebInspectorUI/UserInterface/Views/SpanningDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/SpringEditor.js
Source/WebInspectorUI/UserInterface/Views/StackTraceView.js
Source/WebInspectorUI/UserInterface/Views/StackedLineChart.js
Source/WebInspectorUI/UserInterface/Views/StorageSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/StorageTabContentView.js
Source/WebInspectorUI/UserInterface/Views/StorageTreeElement.js
Source/WebInspectorUI/UserInterface/Views/StyleDetailsPanel.js
Source/WebInspectorUI/UserInterface/Views/SyntaxHighlightingSupport.js
Source/WebInspectorUI/UserInterface/Views/TabBar.js
Source/WebInspectorUI/UserInterface/Views/TabBarItem.js
Source/WebInspectorUI/UserInterface/Views/TabBrowser.js
Source/WebInspectorUI/UserInterface/Views/TabContentView.js
Source/WebInspectorUI/UserInterface/Views/TextContentView.js
Source/WebInspectorUI/UserInterface/Views/TextEditor.js
Source/WebInspectorUI/UserInterface/Views/TextNavigationItem.js
Source/WebInspectorUI/UserInterface/Views/TextResourceContentView.js
Source/WebInspectorUI/UserInterface/Views/TextToggleButtonNavigationItem.js
Source/WebInspectorUI/UserInterface/Views/ThreadTreeElement.js
Source/WebInspectorUI/UserInterface/Views/TimelineDataGrid.js
Source/WebInspectorUI/UserInterface/Views/TimelineDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/TimelineDataGridNodePathComponent.js
Source/WebInspectorUI/UserInterface/Views/TimelineOverview.js
Source/WebInspectorUI/UserInterface/Views/TimelineOverviewGraph.js
Source/WebInspectorUI/UserInterface/Views/TimelineRecordBar.js
Source/WebInspectorUI/UserInterface/Views/TimelineRecordFrame.js
Source/WebInspectorUI/UserInterface/Views/TimelineRecordTreeElement.js
Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js
Source/WebInspectorUI/UserInterface/Views/TimelineRecordingProgressView.js
Source/WebInspectorUI/UserInterface/Views/TimelineRuler.js
Source/WebInspectorUI/UserInterface/Views/TimelineTabContentView.js
Source/WebInspectorUI/UserInterface/Views/TimelineTreeElement.js
Source/WebInspectorUI/UserInterface/Views/TimelineView.js
Source/WebInspectorUI/UserInterface/Views/TitleView.js
Source/WebInspectorUI/UserInterface/Views/ToggleButtonNavigationItem.js
Source/WebInspectorUI/UserInterface/Views/Toolbar.js
Source/WebInspectorUI/UserInterface/Views/TreeElement.js
Source/WebInspectorUI/UserInterface/Views/TreeElementStatusButton.js
Source/WebInspectorUI/UserInterface/Views/TreeOutline.js
Source/WebInspectorUI/UserInterface/Views/TreeOutlineDataGridSynchronizer.js
Source/WebInspectorUI/UserInterface/Views/TreeOutlineGroup.js
Source/WebInspectorUI/UserInterface/Views/TypeTokenView.js
Source/WebInspectorUI/UserInterface/Views/TypeTreeElement.js
Source/WebInspectorUI/UserInterface/Views/TypeTreeView.js
Source/WebInspectorUI/UserInterface/Views/View.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleBackgroundPicker.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleBasicInput.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleColorPicker.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleCommaSeparatedKeywordEditor.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleDetailsPanel.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleFontFamilyListEditor.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleFontFamilyTreeElement.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleKeywordCheckbox.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleKeywordIconList.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleKeywordPicker.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleNumberInputBox.js
Source/WebInspectorUI/UserInterface/Views/VisualStylePropertyCombiner.js
Source/WebInspectorUI/UserInterface/Views/VisualStylePropertyEditor.js
Source/WebInspectorUI/UserInterface/Views/VisualStylePropertyEditorLink.js
Source/WebInspectorUI/UserInterface/Views/VisualStylePropertyNameInput.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleRelativeNumberSlider.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleSelectorSection.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleSelectorTreeItem.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleTabbedPropertiesRow.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleTimingEditor.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleURLInput.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleUnitSlider.js
Source/WebInspectorUI/UserInterface/Views/WebSocketContentView.js
Source/WebInspectorUI/UserInterface/Views/WebSocketDataGridNode.js
Source/WebInspectorUI/UserInterface/Views/WebSocketResourceTreeElement.js
Source/WebInspectorUI/UserInterface/Views/WorkerTreeElement.js
Source/WebInspectorUI/UserInterface/Views/XHRBreakpointPopover.js
Source/WebInspectorUI/UserInterface/Views/XHRBreakpointTreeElement.js
Tools/ChangeLog
Tools/Scripts/check-inspector-strings
Tools/Scripts/extract-localizable-js-strings

index c907d80..771c4ec 100644 (file)
@@ -1,3 +1,14 @@
+2017-08-01  Devin Rousso  <drousso@apple.com>
+
+        Web Inspector: simplify WebInspector with WI
+        https://bugs.webkit.org/show_bug.cgi?id=175058
+
+        Reviewed by Joseph Pecoraro.
+
+        * http/tests/inspector/**/*.html:
+        * http/tests/websocket/tests/hybi/inspector/**/*.html:
+        * inspector/**/*.html:
+
 2017-08-01  Matt Lewis  <jlewis3@apple.com>
 
         Added expectations files for El Capitan.
index 0911f8e..b0d0f49 100644 (file)
@@ -7,7 +7,7 @@ function test()
 {
     let suite = InspectorTest.createAsyncSuite("CommandLineAPI.$0.cross-frame");
 
-    let mainFrame = WebInspector.frameResourceManager.mainFrame;
+    let mainFrame = WI.frameResourceManager.mainFrame;
     let childFrames = mainFrame.childFrameCollection.toArray();
     InspectorTest.expectEqual(childFrames.length, 1, "Page should have a subframe.");
 
@@ -23,7 +23,7 @@ function test()
             RuntimeAgent.evaluate.invoke({expression: "$0", includeCommandLineAPI: true}, (error, remoteObjectPayload, wasThrown) => {    
                 InspectorTest.assert(!error, "Should not be a protocol error.");
                 InspectorTest.assert(!wasThrown, "Should not be an exception.");
-                let remoteObject = WebInspector.RemoteObject.fromPayload(remoteObjectPayload);
+                let remoteObject = WI.RemoteObject.fromPayload(remoteObjectPayload);
                 InspectorTest.expectThat(remoteObject.value === null, "MainFrame access to $0 node in subframe should be null.");
                 resolve();
             });
@@ -39,7 +39,7 @@ function test()
             RuntimeAgent.evaluate.invoke({expression: "$0", includeCommandLineAPI: true}, (error, remoteObjectPayload, wasThrown) => {
                 InspectorTest.assert(!error, "Should not be a protocol error.");
                 InspectorTest.assert(!wasThrown, "Should not be an exception.");
-                let remoteObject = WebInspector.RemoteObject.fromPayload(remoteObjectPayload);
+                let remoteObject = WI.RemoteObject.fromPayload(remoteObjectPayload);
                 InspectorTest.expectThat(remoteObject.isNode(), "MainFrame access to $0 node in main frame should be a node.");
                 resolve();
             });
@@ -55,7 +55,7 @@ function test()
             RuntimeAgent.evaluate.invoke({expression: "$0", includeCommandLineAPI: true, contextId: childFrames[0].pageExecutionContext.id}, (error, remoteObjectPayload, wasThrown) => {
                 InspectorTest.assert(!error, "Should not be a protocol error.");
                 InspectorTest.assert(!wasThrown, "Should not be an exception.");
-                let remoteObject = WebInspector.RemoteObject.fromPayload(remoteObjectPayload);
+                let remoteObject = WI.RemoteObject.fromPayload(remoteObjectPayload);
                 InspectorTest.expectThat(remoteObject.value === null, "SubFrame access to $0 node in main frame should be null.");
                 resolve();
             });
@@ -71,18 +71,18 @@ function test()
             RuntimeAgent.evaluate.invoke({expression: "$0", includeCommandLineAPI: true, contextId: childFrames[0].pageExecutionContext.id}, (error, remoteObjectPayload, wasThrown) => {
                 InspectorTest.assert(!error, "Should not be a protocol error.");
                 InspectorTest.assert(!wasThrown, "Should not be an exception.");
-                let remoteObject = WebInspector.RemoteObject.fromPayload(remoteObjectPayload);
+                let remoteObject = WI.RemoteObject.fromPayload(remoteObjectPayload);
                 InspectorTest.expectThat(remoteObject.isNode(), "SubFrame access to $0 node in sub frame should be a node.");
                 resolve();
             });
         }
     });
 
-    WebInspector.domTreeManager.requestDocument((documentNode) => {
-        WebInspector.domTreeManager.querySelector(documentNode.id, "iframe#myframe", (nodeId) => {
-            let iframeNode = WebInspector.domTreeManager.nodeForId(nodeId);
+    WI.domTreeManager.requestDocument((documentNode) => {
+        WI.domTreeManager.querySelector(documentNode.id, "iframe#myframe", (nodeId) => {
+            let iframeNode = WI.domTreeManager.nodeForId(nodeId);
             let iframeDocumentNodeId = iframeNode.children[0].id;
-            WebInspector.domTreeManager.querySelector(iframeDocumentNodeId, "div#rootDiv", (nodeId) => {
+            WI.domTreeManager.querySelector(iframeDocumentNodeId, "div#rootDiv", (nodeId) => {
                 nodeInMainFrameId = iframeNode.id;
                 nodeInSubFrameId = nodeId;
                 suite.runTestCasesAndFinish();
index 74da92e..aabad5b 100644 (file)
@@ -2,48 +2,48 @@ TestPage.registerInitializer(function() {
 
 InspectorTest.startTracingBreakpoints = function()
 {
-    if (!WebInspector.debuggerManager)
+    if (!WI.debuggerManager)
         return;
 
-    WebInspector.debuggerManager.addEventListener(WebInspector.DebuggerManager.Event.BreakpointAdded, function(event) {
+    WI.debuggerManager.addEventListener(WI.DebuggerManager.Event.BreakpointAdded, function(event) {
         InspectorTest.log("Breakpoint was added.");
     });
 
-    WebInspector.debuggerManager.addEventListener(WebInspector.DebuggerManager.Event.BreakpointRemoved, function(event) {
+    WI.debuggerManager.addEventListener(WI.DebuggerManager.Event.BreakpointRemoved, function(event) {
         InspectorTest.log("Breakpoint was removed.");
     });
 
-    WebInspector.Breakpoint.addEventListener(WebInspector.Breakpoint.Event.DisabledStateDidChange, function(event) {
+    WI.Breakpoint.addEventListener(WI.Breakpoint.Event.DisabledStateDidChange, function(event) {
         var breakpoint = event.target;
-        console.assert(breakpoint instanceof WebInspector.Breakpoint, "Unexpected object type!");
+        console.assert(breakpoint instanceof WI.Breakpoint, "Unexpected object type!");
 
         InspectorTest.log("Breakpoint disabled state changed: " + breakpoint.disabled);
     });
 
-    WebInspector.Breakpoint.addEventListener(WebInspector.Breakpoint.Event.ResolvedStateDidChange, function(event) {
+    WI.Breakpoint.addEventListener(WI.Breakpoint.Event.ResolvedStateDidChange, function(event) {
         var breakpoint = event.target;
-        console.assert(breakpoint instanceof WebInspector.Breakpoint, "Unexpected object type!");
+        console.assert(breakpoint instanceof WI.Breakpoint, "Unexpected object type!");
 
         InspectorTest.log("Breakpoint resolved state changed: " + breakpoint.resolved);
     });
 
-    WebInspector.Breakpoint.addEventListener(WebInspector.Breakpoint.Event.AutoContinueDidChange, function(event) {
+    WI.Breakpoint.addEventListener(WI.Breakpoint.Event.AutoContinueDidChange, function(event) {
         var breakpoint = event.target;
-        console.assert(breakpoint instanceof WebInspector.Breakpoint, "Unexpected object type!");
+        console.assert(breakpoint instanceof WI.Breakpoint, "Unexpected object type!");
 
         InspectorTest.log("Breakpoint autocontinue state changed: " + breakpoint.autoContinue);
     });
 
-    WebInspector.Breakpoint.addEventListener(WebInspector.Breakpoint.Event.ConditionDidChange, function(event) {
+    WI.Breakpoint.addEventListener(WI.Breakpoint.Event.ConditionDidChange, function(event) {
         var breakpoint = event.target;
-        console.assert(breakpoint instanceof WebInspector.Breakpoint, "Unexpected object type!");
+        console.assert(breakpoint instanceof WI.Breakpoint, "Unexpected object type!");
 
         InspectorTest.log("Breakpoint condition changed: " + breakpoint.condition);
     });
 
-    WebInspector.Breakpoint.addEventListener(WebInspector.Breakpoint.Event.ActionsDidChange, function(event) {
+    WI.Breakpoint.addEventListener(WI.Breakpoint.Event.ActionsDidChange, function(event) {
         var breakpoint = event.target;
-        console.assert(breakpoint instanceof WebInspector.Breakpoint, "Unexpected object type!");
+        console.assert(breakpoint instanceof WI.Breakpoint, "Unexpected object type!");
 
         InspectorTest.log("Breakpoint actions changed. New count: " + breakpoint.actions.length);
     });
@@ -51,61 +51,61 @@ InspectorTest.startTracingBreakpoints = function()
 
 InspectorTest.startTracingProbes = function()
 {
-    if (!WebInspector.probeManager)
+    if (!WI.probeManager)
         return;
 
-    WebInspector.probeManager.addEventListener(WebInspector.ProbeManager.Event.ProbeSetAdded, function(event) {
+    WI.probeManager.addEventListener(WI.ProbeManager.Event.ProbeSetAdded, function(event) {
         var probeSet = event.data.probeSet;
-        console.assert(probeSet instanceof WebInspector.ProbeSet, "Unexpected object type!");
+        console.assert(probeSet instanceof WI.ProbeSet, "Unexpected object type!");
 
-        InspectorTest.log("Probe set was added. New count: " + WebInspector.probeManager.probeSets.length);
+        InspectorTest.log("Probe set was added. New count: " + WI.probeManager.probeSets.length);
     });
 
-    WebInspector.probeManager.addEventListener(WebInspector.ProbeManager.Event.ProbeSetRemoved, function(event) {
+    WI.probeManager.addEventListener(WI.ProbeManager.Event.ProbeSetRemoved, function(event) {
         var probeSet = event.data.probeSet;
-        console.assert(probeSet instanceof WebInspector.ProbeSet, "Unexpected object type!");
+        console.assert(probeSet instanceof WI.ProbeSet, "Unexpected object type!");
 
-        InspectorTest.log("Probe set was removed. New count: " + WebInspector.probeManager.probeSets.length);
+        InspectorTest.log("Probe set was removed. New count: " + WI.probeManager.probeSets.length);
     });
 
-    WebInspector.Probe.addEventListener(WebInspector.Probe.Event.ExpressionChanged, function(event) {
+    WI.Probe.addEventListener(WI.Probe.Event.ExpressionChanged, function(event) {
         var probe = event.target;
-        console.assert(probe instanceof WebInspector.Probe, "Unexpected object type!");
+        console.assert(probe instanceof WI.Probe, "Unexpected object type!");
 
         InspectorTest.log("Probe with identifier " + probe.id + " changed expression: " + probe.expression);
     });
 
-    WebInspector.Probe.addEventListener(WebInspector.Probe.Event.SampleAdded, function(event) {
+    WI.Probe.addEventListener(WI.Probe.Event.SampleAdded, function(event) {
         var probe = event.target;
         var sample = event.data;
-        console.assert(probe instanceof WebInspector.Probe, "Unexpected object type!");
-        console.assert(sample instanceof WebInspector.ProbeSample, "Unexpected object type!");
+        console.assert(probe instanceof WI.Probe, "Unexpected object type!");
+        console.assert(sample instanceof WI.ProbeSample, "Unexpected object type!");
 
         InspectorTest.log("Probe with identifier " + probe.id + " added sample: " + sample);
     });
 
-    WebInspector.Probe.addEventListener(WebInspector.Probe.Event.SamplesCleared, function(event) {
+    WI.Probe.addEventListener(WI.Probe.Event.SamplesCleared, function(event) {
         var probe = event.target;
-        console.assert(probe instanceof WebInspector.Probe, "Unexpected object type!");
+        console.assert(probe instanceof WI.Probe, "Unexpected object type!");
 
         InspectorTest.log("Probe with identifier " + probe.id + " cleared all samples.");
     });
 
-    WebInspector.ProbeSet.addEventListener(WebInspector.ProbeSet.Event.ProbeAdded, function(event) {
+    WI.ProbeSet.addEventListener(WI.ProbeSet.Event.ProbeAdded, function(event) {
         var probe = event.data;
         var probeSet = event.target;
-        console.assert(probe instanceof WebInspector.Probe, "Unexpected object type!");
-        console.assert(probeSet instanceof WebInspector.ProbeSet, "Unexpected object type!");
+        console.assert(probe instanceof WI.Probe, "Unexpected object type!");
+        console.assert(probeSet instanceof WI.ProbeSet, "Unexpected object type!");
 
         InspectorTest.log("Probe with identifier " + probe.id + " was added to probe set.");
         InspectorTest.log("Probe set's probe count: " + probeSet.probes.length);
     });
 
-    WebInspector.ProbeSet.addEventListener(WebInspector.ProbeSet.Event.ProbeRemoved, function(event) {
+    WI.ProbeSet.addEventListener(WI.ProbeSet.Event.ProbeRemoved, function(event) {
         var probe = event.data;
         var probeSet = event.target;
-        console.assert(probe instanceof WebInspector.Probe, "Unexpected object type!");
-        console.assert(probeSet instanceof WebInspector.ProbeSet, "Unexpected object type!");
+        console.assert(probe instanceof WI.Probe, "Unexpected object type!");
+        console.assert(probeSet instanceof WI.ProbeSet, "Unexpected object type!");
 
         InspectorTest.log("Probe with identifier " + probe.id + " was removed from probe set.");
         InspectorTest.log("Probe set's probe count: " + probeSet.probes.length);
index 90062a1..9ef1c68 100644 (file)
@@ -11,7 +11,7 @@ function test()
         name: "CheckLazyInitializationOfDOMTree",
         description: "Check that DOMTree instances are created lazily.",
         test(resolve, reject) {
-            let instances = WebInspector.domTreeManager.retainedObjectsWithPrototype(WebInspector.DOMTree);
+            let instances = WI.domTreeManager.retainedObjectsWithPrototype(WI.DOMTree);
             InspectorTest.expectThat(instances.size === 0, "There should not be a DOMTree listening to DOMTreeManager events initially.");
             InspectorTest.log("DOMTree instance count: " + instances.size);
             resolve();
@@ -22,10 +22,10 @@ function test()
         name: "CheckDOMTreeCountAfterUsingGetter",
         description: "Check that the count of connected DOMTrees is correct after initializing them.",
         test(resolve, reject) {
-            let mainFrame = WebInspector.frameResourceManager.mainFrame;
+            let mainFrame = WI.frameResourceManager.mainFrame;
             mainFrame.domTree; // Force creation of the root DOM tree.
 
-            let instances = WebInspector.domTreeManager.retainedObjectsWithPrototype(WebInspector.DOMTree);
+            let instances = WI.domTreeManager.retainedObjectsWithPrototype(WI.DOMTree);
             InspectorTest.expectThat(instances.size === 1, "There should be a one DOMTree listening to DOMTreeManager events after creation.");
             InspectorTest.log("DOMTree instance count: " + instances.size);
 
@@ -39,7 +39,7 @@ function test()
             let childrenLevel3 = childrenLevel2[0].childFrameCollection.toArray();
             childrenLevel3[0].domTree;
 
-            instances = WebInspector.domTreeManager.retainedObjectsWithPrototype(WebInspector.DOMTree);
+            instances = WI.domTreeManager.retainedObjectsWithPrototype(WI.DOMTree);
             InspectorTest.expectThat(instances.size === 4, "There should be four DOMTrees listening to DOMTreeManager events after touching each Frame.");
             InspectorTest.log("DOMTree instance count: " + instances.size);
 
@@ -51,9 +51,9 @@ function test()
         name: "CheckDOMTreeCountAfterReloading",
         description: "Check that the count of connected DOMTrees is correct after a reload.",
         test(resolve, reject) {
-            WebInspector.Frame.awaitEvent(WebInspector.Frame.Event.MainResourceDidChange)
+            WI.Frame.awaitEvent(WI.Frame.Event.MainResourceDidChange)
             .then((event) => {
-                let instances = WebInspector.domTreeManager.retainedObjectsWithPrototype(WebInspector.DOMTree);
+                let instances = WI.domTreeManager.retainedObjectsWithPrototype(WI.DOMTree);
                 InspectorTest.expectThat(instances.size === 0, "There should not be any DOMTrees listening to DOMTreeManager events after a main frame navigation.");
                 InspectorTest.log("DOMTree instance count: " + instances.size);
             })
index bbbeea9..cd4014d 100644 (file)
@@ -3,10 +3,10 @@ TestPage.registerInitializer(function() {
 InspectorTest.Shapes = {
     getShapeOutsideInfoForSelector: function(selector, callback)
     {
-        WebInspector.domTreeManager.requestDocument(requestDocumentCallback);
+        WI.domTreeManager.requestDocument(requestDocumentCallback);
 
         function requestDocumentCallback(node) {
-            InspectorTest.assert(node instanceof WebInspector.DOMNode, "Unexpected argument to requestDocument callback.")
+            InspectorTest.assert(node instanceof WI.DOMNode, "Unexpected argument to requestDocument callback.")
             DOMAgent.querySelector.invoke({nodeId: node.id, selector: selector}, querySelectorCallback);
         }
 
index fe0b86a..3924b27 100644 (file)
@@ -67,7 +67,7 @@ function test()
         name: "SimpleURLGenerateCURL",
         description: "Generate cURL command from a simple URL.",
         test(resolve, reject) {
-            WebInspector.Frame.awaitEvent(WebInspector.Frame.Event.ResourceWasAdded)
+            WI.Frame.awaitEvent(WI.Frame.Event.ResourceWasAdded)
             .then((event) => {
                 let resource = event.data.resource;
                 let curl = resource.generateCURLCommand().split(" \\\n");
@@ -87,7 +87,7 @@ function test()
         name: "SpecialURLGenerateCURL",
         description: "Generate cURL command from a URL containing special characters.",
         test(resolve, reject) {
-            WebInspector.Frame.awaitEvent(WebInspector.Frame.Event.ResourceWasAdded)
+            WI.Frame.awaitEvent(WI.Frame.Event.ResourceWasAdded)
             .then((event) => {
                 let resource = event.data.resource;
                 let curl = resource.generateCURLCommand().split(" \\\n");
@@ -104,7 +104,7 @@ function test()
         name: "SpecialHeadersGenerateCURLValidPOSIXOutput",
         description: "Generate cURL command from a request containing special characters in the headers and verify valid POSIX output.",
         test(resolve, reject) {
-            WebInspector.Frame.awaitEvent(WebInspector.Frame.Event.ResourceWasAdded)
+            WI.Frame.awaitEvent(WI.Frame.Event.ResourceWasAdded)
             .then((event) => {
                 let resource = event.data.resource;
                 let curl = resource.generateCURLCommand().split(" \\\n");
@@ -123,7 +123,7 @@ function test()
         name: "URLWithUTF8GenerateCURL",
         description: "Generate cURL command from a URL containing UTF8 characters.",
         test(resolve, reject) {
-            WebInspector.Frame.awaitEvent(WebInspector.Frame.Event.ResourceWasAdded)
+            WI.Frame.awaitEvent(WI.Frame.Event.ResourceWasAdded)
             .then((event) => {
                 let resource = event.data.resource;
                 let curl = resource.generateCURLCommand().split(" \\\n");
@@ -140,7 +140,7 @@ function test()
         name: "POSTRequestURLEncodedDataGenerateCURL",
         description: "Generate cURL command from a POST request with URL encoded data.",
         test(resolve, reject) {
-            WebInspector.Frame.awaitEvent(WebInspector.Frame.Event.ResourceWasAdded)
+            WI.Frame.awaitEvent(WI.Frame.Event.ResourceWasAdded)
             .then((event) => {
                 let resource = event.data.resource;
                 let curl = resource.generateCURLCommand().split(" \\\n");
@@ -159,7 +159,7 @@ function test()
         name: "POSTRequestURLEncodedDataUTF8GenerateCURL",
         description: "Generate cURL command from a POST request with URL encoded UTF8 data.",
         test(resolve, reject) {
-            WebInspector.Frame.awaitEvent(WebInspector.Frame.Event.ResourceWasAdded)
+            WI.Frame.awaitEvent(WI.Frame.Event.ResourceWasAdded)
             .then((event) => {
                 let resource = event.data.resource;
                 let curl = resource.generateCURLCommand().split(" \\\n");
@@ -177,7 +177,7 @@ function test()
         name: "PUTRequestWithJSONGenerateCURL",
         description: "Generate cURL command from a PUT request with JSON data.",
         test(resolve, reject) {
-            WebInspector.Frame.awaitEvent(WebInspector.Frame.Event.ResourceWasAdded)
+            WI.Frame.awaitEvent(WI.Frame.Event.ResourceWasAdded)
             .then((event) => {
                 let resource = event.data.resource;
                 let curl = resource.generateCURLCommand().split(" \\\n");
index f48b6d1..e3bc95b 100644 (file)
@@ -12,22 +12,22 @@ function test()
         suite.addTestCase({
             name, test(resolve, reject) {
                 InspectorTest.evaluateInPage(expression);
-                WebInspector.Frame.singleFireEventListener(WebInspector.Frame.Event.ResourceWasAdded, (event) => {
+                WI.Frame.singleFireEventListener(WI.Frame.Event.ResourceWasAdded, (event) => {
                     let resource = event.data.resource;
-                    InspectorTest.expectEqual(resource.type, WebInspector.Resource.Type.Fetch, "Resource should be Fetch type.");
+                    InspectorTest.expectEqual(resource.type, WI.Resource.Type.Fetch, "Resource should be Fetch type.");
                     if (loadedHandler) {
-                        resource.awaitEvent(WebInspector.Resource.Event.LoadingDidFinish)
+                        resource.awaitEvent(WI.Resource.Event.LoadingDidFinish)
                             .then(() => { InspectorTest.pass("Resource should have loaded successfully.") })
                             .then(() => { loadedHandler(resource); })
                             .then(resolve, reject);
-                        resource.awaitEvent(WebInspector.Resource.Event.LoadingDidFail)
+                        resource.awaitEvent(WI.Resource.Event.LoadingDidFail)
                             .then(() => { InspectorTest.fail("Resource should not have failed to load.") })
                             .then(reject, reject);
                     } else if (failedHandler) {
-                        resource.awaitEvent(WebInspector.Resource.Event.LoadingDidFinish)
+                        resource.awaitEvent(WI.Resource.Event.LoadingDidFinish)
                             .then(() => { InspectorTest.fail("Resource should not have loaded successfully.") })
                             .then(resolve, reject);
-                        resource.awaitEvent(WebInspector.Resource.Event.LoadingDidFail)
+                        resource.awaitEvent(WI.Resource.Event.LoadingDidFail)
                             .then(() => { InspectorTest.pass("Resource should have failed to load.") })
                             .then(() => { failedHandler(resource); })
                             .then(resolve, reject);
index b2d678e..5001297 100644 (file)
@@ -41,10 +41,10 @@ function test()
             name, description,
             test(resolve, reject) {
                 InspectorTest.evaluateInPage(expression);
-                WebInspector.Frame.awaitEvent(WebInspector.Frame.Event.ResourceWasAdded)
+                WI.Frame.awaitEvent(WI.Frame.Event.ResourceWasAdded)
                     .then((event) => {
                         let resource = event.data.resource;
-                        InspectorTest.expectEqual(resource.type, WebInspector.Resource.Type.Fetch, "Resource should be Fetch type.");
+                        InspectorTest.expectEqual(resource.type, WI.Resource.Type.Fetch, "Resource should be Fetch type.");
                         return resource.requestContent();
                     })
                     .then(contentHandler)
index de96e3f..414bdf4 100644 (file)
@@ -12,7 +12,7 @@ function test()
         description: "Ensure trying to load an https resource from a secure page succeeds.",
         test(resolve, reject) {
             const url = "https://127.0.0.1:8443/inspector/network/resources/data.json?1";
-            NetworkAgent.loadResource(WebInspector.frameResourceManager.mainFrame.id, url, (error, content, mimeType, status) => {
+            NetworkAgent.loadResource(WI.frameResourceManager.mainFrame.id, url, (error, content, mimeType, status) => {
                 InspectorTest.expectThat(!error, "Should not be an error loading a secure resource.");
                 InspectorTest.expectEqual(status, 200, "Should be a 200 OK status.");
                 resolve();
@@ -25,7 +25,7 @@ function test()
         description: "Ensure trying to load an http resource from a secure page fails.",
         test(resolve, reject) {
             const url = "http://127.0.0.0:8000/inspector/network/resources/data.json?2";
-            NetworkAgent.loadResource(WebInspector.frameResourceManager.mainFrame.id, url, (error, content, mimeType, status) => {
+            NetworkAgent.loadResource(WI.frameResourceManager.mainFrame.id, url, (error, content, mimeType, status) => {
                 InspectorTest.expectThat(error, "Should be an error loading an insecure resource.");
                 InspectorTest.pass(error);
                 resolve();
index 586866a..e731bdc 100644 (file)
@@ -21,16 +21,16 @@ function test()
             test(resolve, reject) {
                 InspectorTest.evaluateInPage(expression);
                 Promise.all([
-                    WebInspector.Frame.awaitEvent(WebInspector.Frame.Event.ResourceWasAdded),
-                    WebInspector.Resource.awaitEvent(WebInspector.Resource.Event.ResponseReceived),
+                    WI.Frame.awaitEvent(WI.Frame.Event.ResourceWasAdded),
+                    WI.Resource.awaitEvent(WI.Resource.Event.ResponseReceived),
                     InspectorTest.awaitEvent("LoadComplete"),
                 ]).then(([resourceWasAddedEvent, responseReceivedEvent, loadCompleteEvent]) => {
                     let resource = resourceWasAddedEvent.data.resource;
-                    InspectorTest.expectThat(resource instanceof WebInspector.Resource, "Resource should be created.");
+                    InspectorTest.expectThat(resource instanceof WI.Resource, "Resource should be created.");
                     InspectorTest.expectEqual(resource, responseReceivedEvent.target, "Resource should receive a Response.");
                     InspectorTest.expectEqual(resource.statusCode, statusCode, `statusCode should be ${statusCode}.`);
                     InspectorTest.expectThat(resource.protocol === null || resource.protocol === protocol, `protocol should be null or ${protocol}.`);
-                    InspectorTest.expectThat(resource.priority === WebInspector.Resource.NetworkPriority.Unknown || resource.priority === priority, `priority should be ${String(WebInspector.Resource.NetworkPriority.Unknown)} or ${String(priority)}.`);
+                    InspectorTest.expectThat(resource.priority === WI.Resource.NetworkPriority.Unknown || resource.priority === priority, `priority should be ${String(WI.Resource.NetworkPriority.Unknown)} or ${String(priority)}.`);
                     InspectorTest.expectThat(resource.remoteAddress === null || typeof resource.protocol === remoteAddressType, `remoteAddressType should be null or a ${remoteAddressType}.`);
                     InspectorTest.expectThat(resource.connectionIdentifier === null || typeof resource.protocol === connectionIdentifierType, `connectionIdentifierType should be null or ${connectionIdentifierType}.`);
                 }).then(resolve, reject);
@@ -44,7 +44,7 @@ function test()
         expression: `triggerNetworkLoad()`,
         statusCode: 200,
         protocol: "http/1.1",
-        priority: WebInspector.Resource.NetworkPriority.Medium,
+        priority: WI.Resource.NetworkPriority.Medium,
         remoteAddressType: "string",
         connectionIdentifierType: "string",
     });
index 0d594fb..faa1206 100644 (file)
@@ -47,10 +47,10 @@ function test()
             name, description,
             test(resolve, reject) {
                 InspectorTest.evaluateInPage(expression);
-                WebInspector.Frame.singleFireEventListener(WebInspector.Frame.Event.ResourceWasAdded, (event) => {
+                WI.Frame.singleFireEventListener(WI.Frame.Event.ResourceWasAdded, (event) => {
                     let resource = event.data.resource;
-                    InspectorTest.expectThat(resource instanceof WebInspector.Resource, "Resource should be created.");
-                    resource.singleFireEventListener(WebInspector.Resource.Event.ResponseReceived, (event) => {
+                    InspectorTest.expectThat(resource instanceof WI.Resource, "Resource should be created.");
+                    resource.singleFireEventListener(WI.Resource.Event.ResponseReceived, (event) => {
                         InspectorTest.expectEqual(resource.type, type, `Resource Type should be '${type}'.`);
                         InspectorTest.expectEqual(resource.mimeType, mimeType, `Resource mimeType should be '${mimeType}'.`);
                         InspectorTest.expectEqual(resource.syntheticMIMEType, synthetic, `Resource syntheticMIMEType should be '${synthetic}'.`);
@@ -66,10 +66,10 @@ function test()
             name, description,
             test(resolve, reject) {
                 InspectorTest.evaluateInPage(expression);
-                WebInspector.Frame.singleFireEventListener(WebInspector.Frame.Event.ChildFrameWasAdded, (event) => {
+                WI.Frame.singleFireEventListener(WI.Frame.Event.ChildFrameWasAdded, (event) => {
                     // At this point the frame's resource has loaded.
                     let resource = event.data.childFrame.mainResource;
-                    InspectorTest.expectThat(resource instanceof WebInspector.Resource, "Frame MainResource should be created.");
+                    InspectorTest.expectThat(resource instanceof WI.Resource, "Frame MainResource should be created.");
                     InspectorTest.expectEqual(resource.type, type, `Resource Type should be '${type}'.`);
                     InspectorTest.expectEqual(resource.mimeType, mimeType, `Resource mimeType should be '${mimeType}'.`);
                     InspectorTest.expectEqual(resource.syntheticMIMEType, synthetic, `Resource syntheticMIMEType should be '${synthetic}'.`);
@@ -95,7 +95,7 @@ function test()
     addTestCase({
         name: "Resource.MIMEType.Script.js",
         expression: `loadScriptWithURL("resources/script.js")`,
-        type: WebInspector.Resource.Type.Script,
+        type: WI.Resource.Type.Script,
         mimeType: mimeTypeForExtension.js,
         synthetic: mimeTypeForExtension.js,
     });
@@ -103,7 +103,7 @@ function test()
     addTestCase({
         name: "Resource.MIMEType.Script.txt",
         expression: `loadScriptWithURL("resources/script.txt")`,
-        type: WebInspector.Resource.Type.Script,
+        type: WI.Resource.Type.Script,
         mimeType: mimeTypeForExtension.txt,
         synthetic: "text/javascript",
     });
@@ -113,7 +113,7 @@ function test()
     addTestCase({
         name: "Resource.MIMEType.Stylesheet.css",
         expression: `loadStyleSheetWithURL("resources/stylesheet.css")`,
-        type: WebInspector.Resource.Type.Stylesheet,
+        type: WI.Resource.Type.Stylesheet,
         mimeType: mimeTypeForExtension.css,
         synthetic: mimeTypeForExtension.css,
     });
@@ -121,7 +121,7 @@ function test()
     addTestCase({
         name: "Resource.MIMEType.Stylesheet.txt",
         expression: `loadStyleSheetWithURL("resources/stylesheet.txt")`,
-        type: WebInspector.Resource.Type.Stylesheet,
+        type: WI.Resource.Type.Stylesheet,
         mimeType: mimeTypeForExtension.txt,
         synthetic: "text/css",
     });
@@ -131,7 +131,7 @@ function test()
     addTestCase({
         name: "Resource.MIMEType.Image.png",
         expression: `loadImageWithURL("/resources/square100.png")`,
-        type: WebInspector.Resource.Type.Image,
+        type: WI.Resource.Type.Image,
         mimeType: mimeTypeForExtension.png,
         synthetic: mimeTypeForExtension.png,
     });
@@ -139,7 +139,7 @@ function test()
     addTestCase({
         name: "Resource.MIMEType.Image.jpg",
         expression: `loadImageWithURL("/resources/square20.jpg")`,
-        type: WebInspector.Resource.Type.Image,
+        type: WI.Resource.Type.Image,
         mimeType: mimeTypeForExtension.jpg,
         synthetic: mimeTypeForExtension.jpg,
     });
@@ -149,7 +149,7 @@ function test()
     addTestCase({
         name: "Resource.MIMEType.XHR.js",
         expression: `loadXHRWithURL("resources/script.js")`,
-        type: WebInspector.Resource.Type.XHR,
+        type: WI.Resource.Type.XHR,
         mimeType: mimeTypeForExtension.js,
         synthetic: mimeTypeForExtension.js,
     });
@@ -157,7 +157,7 @@ function test()
     addTestCase({
         name: "Resource.MIMEType.XHR.css",
         expression: `loadXHRWithURL("resources/stylesheet.css")`,
-        type: WebInspector.Resource.Type.XHR,
+        type: WI.Resource.Type.XHR,
         mimeType: mimeTypeForExtension.css,
         synthetic: mimeTypeForExtension.css,
     });
@@ -165,7 +165,7 @@ function test()
     addTestCase({
         name: "Resource.MIMEType.XHR.png",
         expression: `loadXHRWithURL("/resources/square100.png")`,
-        type: WebInspector.Resource.Type.XHR,
+        type: WI.Resource.Type.XHR,
         mimeType: mimeTypeForExtension.png,
         synthetic: mimeTypeForExtension.png,
     });
@@ -173,7 +173,7 @@ function test()
     addTestCase({
         name: "Resource.MIMEType.XHR.txt",
         expression: `loadXHRWithURL("/resources/square20.jpg")`,
-        type: WebInspector.Resource.Type.XHR,
+        type: WI.Resource.Type.XHR,
         mimeType: mimeTypeForExtension.jpg,
         synthetic: mimeTypeForExtension.jpg,
     });
@@ -181,7 +181,7 @@ function test()
     addTestCase({
         name: "Resource.MIMEType.XHR.json",
         expression: `loadXHRWithURL("resources/json.php")`,
-        type: WebInspector.Resource.Type.XHR,
+        type: WI.Resource.Type.XHR,
         mimeType: mimeTypeForExtension.json,
         synthetic: mimeTypeForExtension.json,
     });
@@ -189,7 +189,7 @@ function test()
     addTestCase({
         name: "Resource.MIMEType.XHR.html",
         expression: `loadXHRWithURL("resources/data.html")`,
-        type: WebInspector.Resource.Type.XHR,
+        type: WI.Resource.Type.XHR,
         mimeType: mimeTypeForExtension.html,
         synthetic: mimeTypeForExtension.html,
     });
@@ -199,7 +199,7 @@ function test()
     addTestCase({
         name: "Resource.MIMEType.Fetch.js",
         expression: `loadFetchWithURL("resources/script.js")`,
-        type: WebInspector.Resource.Type.Fetch,
+        type: WI.Resource.Type.Fetch,
         mimeType: mimeTypeForExtension.js,
         synthetic: mimeTypeForExtension.js,
     });
@@ -207,7 +207,7 @@ function test()
     addTestCase({
         name: "Resource.MIMEType.Fetch.css",
         expression: `loadFetchWithURL("resources/stylesheet.css")`,
-        type: WebInspector.Resource.Type.Fetch,
+        type: WI.Resource.Type.Fetch,
         mimeType: mimeTypeForExtension.css,
         synthetic: mimeTypeForExtension.css,
     });
@@ -215,7 +215,7 @@ function test()
     addTestCase({
         name: "Resource.MIMEType.Fetch.png",
         expression: `loadFetchWithURL("/resources/square100.png")`,
-        type: WebInspector.Resource.Type.Fetch,
+        type: WI.Resource.Type.Fetch,
         mimeType: mimeTypeForExtension.png,
         synthetic: mimeTypeForExtension.png,
     });
@@ -223,7 +223,7 @@ function test()
     addTestCase({
         name: "Resource.MIMEType.Fetch.txt",
         expression: `loadFetchWithURL("/resources/square20.jpg")`,
-        type: WebInspector.Resource.Type.Fetch,
+        type: WI.Resource.Type.Fetch,
         mimeType: mimeTypeForExtension.jpg,
         synthetic: mimeTypeForExtension.jpg,
     });
@@ -231,7 +231,7 @@ function test()
     addTestCase({
         name: "Resource.MIMEType.Fetch.json",
         expression: `loadFetchWithURL("resources/json.php")`,
-        type: WebInspector.Resource.Type.Fetch,
+        type: WI.Resource.Type.Fetch,
         mimeType: mimeTypeForExtension.json,
         synthetic: mimeTypeForExtension.json,
     });
@@ -239,7 +239,7 @@ function test()
     addTestCase({
         name: "Resource.MIMEType.Fetch.html",
         expression: `loadFetchWithURL("resources/data.html")`,
-        type: WebInspector.Resource.Type.Fetch,
+        type: WI.Resource.Type.Fetch,
         mimeType: mimeTypeForExtension.html,
         synthetic: mimeTypeForExtension.html,
     });
@@ -249,7 +249,7 @@ function test()
     addDocumentResourceTestCase({
         name: "Resource.MIMEType.Document.js",
         expression: `loadDocumentWithURL("resources/script.js")`,
-        type: WebInspector.Resource.Type.Document,
+        type: WI.Resource.Type.Document,
         mimeType: mimeTypeForExtension.js,
         synthetic: mimeTypeForExtension.js,
     });
@@ -257,7 +257,7 @@ function test()
     addDocumentResourceTestCase({
         name: "Resource.MIMEType.Document.css",
         expression: `loadDocumentWithURL("resources/stylesheet.css")`,
-        type: WebInspector.Resource.Type.Document,
+        type: WI.Resource.Type.Document,
         mimeType: mimeTypeForExtension.css,
         synthetic: mimeTypeForExtension.css,
     });
@@ -265,7 +265,7 @@ function test()
     addDocumentResourceTestCase({
         name: "Resource.MIMEType.Document.png",
         expression: `loadDocumentWithURL("/resources/square100.png")`,
-        type: WebInspector.Resource.Type.Document,
+        type: WI.Resource.Type.Document,
         mimeType: mimeTypeForExtension.png,
         synthetic: mimeTypeForExtension.png,
     });
@@ -273,7 +273,7 @@ function test()
     addDocumentResourceTestCase({
         name: "Resource.MIMEType.Document.txt",
         expression: `loadDocumentWithURL("/resources/square20.jpg")`,
-        type: WebInspector.Resource.Type.Document,
+        type: WI.Resource.Type.Document,
         mimeType: mimeTypeForExtension.jpg,
         synthetic: mimeTypeForExtension.jpg,
     });
@@ -281,7 +281,7 @@ function test()
     addDocumentResourceTestCase({
         name: "Resource.MIMEType.Document.json",
         expression: `loadDocumentWithURL("resources/json.php")`,
-        type: WebInspector.Resource.Type.Document,
+        type: WI.Resource.Type.Document,
         mimeType: mimeTypeForExtension.json,
         synthetic: mimeTypeForExtension.json,
     });
@@ -289,7 +289,7 @@ function test()
     addDocumentResourceTestCase({
         name: "Resource.MIMEType.Document.html",
         expression: `loadDocumentWithURL("resources/data.html")`,
-        type: WebInspector.Resource.Type.Document,
+        type: WI.Resource.Type.Document,
         mimeType: mimeTypeForExtension.html,
         synthetic: mimeTypeForExtension.html,
     });
index 610c20a..5e2c95f 100644 (file)
@@ -50,13 +50,13 @@ function test()
             test(resolve, reject) {
                 InspectorTest.evaluateInPage(expression);
                 Promise.all([
-                    WebInspector.Frame.awaitEvent(WebInspector.Frame.Event.ResourceWasAdded),
-                    WebInspector.Resource.awaitEvent(WebInspector.Resource.Event.ResponseReceived),
-                    WebInspector.Resource.awaitEvent(WebInspector.Resource.Event.LoadingDidFinish),
+                    WI.Frame.awaitEvent(WI.Frame.Event.ResourceWasAdded),
+                    WI.Resource.awaitEvent(WI.Resource.Event.ResponseReceived),
+                    WI.Resource.awaitEvent(WI.Resource.Event.LoadingDidFinish),
                     InspectorTest.awaitEvent("LoadComplete"),
                 ]).then(([resourceWasAddedEvent, responseReceivedEvent, loadingDidFinish, loadCompleteEvent]) => {
                     let resource = resourceWasAddedEvent.data.resource;
-                    InspectorTest.expectThat(resource instanceof WebInspector.Resource, "Resource should be created.");
+                    InspectorTest.expectThat(resource instanceof WI.Resource, "Resource should be created.");
                     InspectorTest.expectEqual(resource, responseReceivedEvent.target, "Resource should receive a Response.");
                     return loadHandler(resource);
                 }).then(resolve, reject);
index a1e459a..1343538 100644 (file)
@@ -29,12 +29,12 @@ function test()
             test(resolve, reject) {
                 InspectorTest.evaluateInPage(expression);
                 Promise.all([
-                    WebInspector.Frame.awaitEvent(WebInspector.Frame.Event.ResourceWasAdded),
-                    WebInspector.Resource.awaitEvent(WebInspector.Resource.Event.ResponseReceived),
+                    WI.Frame.awaitEvent(WI.Frame.Event.ResourceWasAdded),
+                    WI.Resource.awaitEvent(WI.Resource.Event.ResponseReceived),
                     InspectorTest.awaitEvent("LoadComplete"),
                 ]).then(([resourceWasAddedEvent, responseReceivedEvent, loadCompleteEvent]) => {
                     let resource = resourceWasAddedEvent.data.resource;
-                    InspectorTest.expectThat(resource instanceof WebInspector.Resource, "Resource should be created.");
+                    InspectorTest.expectThat(resource instanceof WI.Resource, "Resource should be created.");
                     InspectorTest.expectEqual(resource, responseReceivedEvent.target, "Resource should receive a Response.");
                     if (statusCode)
                         InspectorTest.expectEqual(resource.statusCode, statusCode, `statusCode should be ${statusCode}`);
@@ -56,7 +56,7 @@ function test()
         name: "Resource.ResponseSource.DiskCache",
         description: "Load a resource from the disk cache",
         expression: `triggerDiskCacheLoad()`,
-        responseSource: WebInspector.Resource.ResponseSource.DiskCache,
+        responseSource: WI.Resource.ResponseSource.DiskCache,
         statusCode: 200,
     });
 
index deb48dd..3704572 100644 (file)
@@ -18,7 +18,7 @@ function test()
                 InspectorTest.reloadPage({ignoreCache, revalidateAllResources: true});
                 InspectorTest.awaitEvent("LoadComplete").then((event) => {
                     let resource = null;
-                    for (let item of WebInspector.frameResourceManager.mainFrame.resourceCollection.items) {
+                    for (let item of WI.frameResourceManager.mainFrame.resourceCollection.items) {
                         if (pattern.test(item.url)) {
                             resource = item;
                             break;
@@ -29,7 +29,7 @@ function test()
                         reject();
                         return;
                     }
-                    InspectorTest.expectThat(resource instanceof WebInspector.Resource, "Resource should be exist.");
+                    InspectorTest.expectThat(resource instanceof WI.Resource, "Resource should be exist.");
                     InspectorTest.expectEqual(resource.statusCode, statusCode, `statusCode should be ${statusCode}`);
                     InspectorTest.expectEqual(resource.responseSource, responseSource, `responseSource should be ${String(responseSource)}`);
                 }).then(resolve, reject);
@@ -42,7 +42,7 @@ function test()
         description: "Load a resource from the memory cache by reloading this page.",
         pattern: /cached-script\.js$/,
         ignoreCache: false,
-        responseSource: WebInspector.Resource.ResponseSource.MemoryCache,
+        responseSource: WI.Resource.ResponseSource.MemoryCache,
         statusCode: 304,
     });
 
index 1768308..86c6b9c 100644 (file)
@@ -18,7 +18,7 @@ function test()
                 InspectorTest.reloadPage({ignoreCache});
                 InspectorTest.awaitEvent("LoadComplete").then((event) => {
                     let resource = null;
-                    for (let item of WebInspector.frameResourceManager.mainFrame.resourceCollection.items) {
+                    for (let item of WI.frameResourceManager.mainFrame.resourceCollection.items) {
                         if (pattern.test(item.url)) {
                             resource = item;
                             break;
@@ -29,7 +29,7 @@ function test()
                         reject();
                         return;
                     }
-                    InspectorTest.expectThat(resource instanceof WebInspector.Resource, "Resource should be exist.");
+                    InspectorTest.expectThat(resource instanceof WI.Resource, "Resource should be exist.");
                     InspectorTest.expectEqual(resource.statusCode, statusCode, `statusCode should be ${statusCode}`);
                     InspectorTest.expectEqual(resource.responseSource, responseSource, `responseSource should be ${String(responseSource)}`);
                 }).then(resolve, reject);
@@ -42,7 +42,7 @@ function test()
         description: "Load a resource from the memory cache by reloading this page.",
         pattern: /cached-script\.js$/,
         ignoreCache: false,
-        responseSource: WebInspector.Resource.ResponseSource.MemoryCache,
+        responseSource: WI.Resource.ResponseSource.MemoryCache,
         statusCode: 200,
     });
 
index 4941d21..c290e05 100644 (file)
@@ -21,12 +21,12 @@ function test()
             test(resolve, reject) {
                 InspectorTest.evaluateInPage(expression);
                 Promise.all([
-                    WebInspector.Frame.awaitEvent(WebInspector.Frame.Event.ResourceWasAdded),
-                    WebInspector.Resource.awaitEvent(WebInspector.Resource.Event.ResponseReceived),
+                    WI.Frame.awaitEvent(WI.Frame.Event.ResourceWasAdded),
+                    WI.Resource.awaitEvent(WI.Resource.Event.ResponseReceived),
                     InspectorTest.awaitEvent("LoadComplete"),
                 ]).then(([resourceWasAddedEvent, responseReceivedEvent, loadCompleteEvent]) => {
                     let resource = resourceWasAddedEvent.data.resource;
-                    InspectorTest.expectThat(resource instanceof WebInspector.Resource, "Resource should be created.");
+                    InspectorTest.expectThat(resource instanceof WI.Resource, "Resource should be created.");
                     InspectorTest.expectEqual(resource, responseReceivedEvent.target, "Resource should receive a Response.");
                     InspectorTest.expectEqual(resource.statusCode, statusCode, `statusCode should be ${statusCode}`);
                     InspectorTest.expectEqual(resource.responseSource, responseSource, `responseSource should be ${String(responseSource)}`);
@@ -39,7 +39,7 @@ function test()
         name: "Resource.ResponseSource.Network",
         description: "Load a resource from the network by giving a random URL.",
         expression: `triggerNetworkLoad()`,
-        responseSource: WebInspector.Resource.ResponseSource.Network,
+        responseSource: WI.Resource.ResponseSource.Network,
         statusCode: 200,
     });
 
index 28be574..f3596bf 100644 (file)
@@ -36,7 +36,7 @@ function test()
         url: "/resources/square100.png",
         statusCode: 200,
         compressed: false,
-        responseSource: WebInspector.Resource.ResponseSource.DiskCache,
+        responseSource: WI.Resource.ResponseSource.DiskCache,
         headers: false,
         requestBodyTransferSize: 0,
         responseBodyTransferSize: 0,
index 703c307..9adb69b 100644 (file)
@@ -17,7 +17,7 @@ function test()
         description: "Sizes of a cached script resource with a validation request",
         statusCode: 304,
         compressed: false,
-        responseSource: WebInspector.Resource.ResponseSource.MemoryCache,
+        responseSource: WI.Resource.ResponseSource.MemoryCache,
         headers: true,
         requestBodyTransferSize: 0,
         responseBodyTransferSize: 0,
@@ -29,7 +29,7 @@ function test()
             InspectorTest.reloadPage({ignoreCache, revalidateAllResources});
             return InspectorTest.awaitEvent("LoadComplete").then((event) => {
                 let resource = null;
-                for (let item of WebInspector.frameResourceManager.mainFrame.resourceCollection.items) {
+                for (let item of WI.frameResourceManager.mainFrame.resourceCollection.items) {
                     if (pattern.test(item.url)) {
                         resource = item;
                         break;
index 8bbf8c4..c706a3a 100644 (file)
@@ -35,7 +35,7 @@ function test()
         url: "resources/lorem.txt?" + Math.random(),
         statusCode: 200,
         compressed: false,
-        responseSource: WebInspector.Resource.ResponseSource.Network,
+        responseSource: WI.Resource.ResponseSource.Network,
         headers: true,
         requestBodyTransferSize: 0,
         responseBodyTransferSize: 2955,
@@ -48,7 +48,7 @@ function test()
         url: "resources/gzipped-lorem.php?" + Math.random(),
         statusCode: 200,
         compressed: true,
-        responseSource: WebInspector.Resource.ResponseSource.Network,
+        responseSource: WI.Resource.ResponseSource.Network,
         headers: true,
         requestBodyTransferSize: 0,
         responseBodyTransferSize: 1229,
@@ -61,7 +61,7 @@ function test()
         url: "resources/gzipped-lorem-no-content-length.php?" + Math.random(),
         statusCode: 200,
         compressed: true,
-        responseSource: WebInspector.Resource.ResponseSource.Network,
+        responseSource: WI.Resource.ResponseSource.Network,
         headers: true,
         requestBodyTransferSize: 0,
         responseBodyTransferSize: 1229,
@@ -74,7 +74,7 @@ function test()
         url: "/resources/square100.png?" + Math.random(),
         statusCode: 200,
         compressed: false,
-        responseSource: WebInspector.Resource.ResponseSource.Network,
+        responseSource: WI.Resource.ResponseSource.Network,
         headers: true,
         requestBodyTransferSize: 0,
         responseBodyTransferSize: 12940,
@@ -87,7 +87,7 @@ function test()
         url: "resources/404.php?" + Math.random(),
         statusCode: 404,
         compressed: false,
-        responseSource: WebInspector.Resource.ResponseSource.Network,
+        responseSource: WI.Resource.ResponseSource.Network,
         headers: true,
         requestBodyTransferSize: 0,
         responseBodyTransferSize: 512,
@@ -99,7 +99,7 @@ function test()
         description: "Sizes of a resource with request data",
         statusCode: 200,
         compressed: false,
-        responseSource: WebInspector.Resource.ResponseSource.Network,
+        responseSource: WI.Resource.ResponseSource.Network,
         headers: true,
         requestBodyTransferSize: 1027,
         responseBodyTransferSize: 28,
@@ -107,7 +107,7 @@ function test()
         resourceLoader() {
             InspectorTest.evaluateInPage(`triggerNetworkLoadWithRequestData()`);
             return Promise.all([
-                WebInspector.Frame.awaitEvent(WebInspector.Frame.Event.ResourceWasAdded),
+                WI.Frame.awaitEvent(WI.Frame.Event.ResourceWasAdded),
                 InspectorTest.awaitEvent("LoadComplete"),
             ]).then(([resourceWasAddedEvent, loadCompleteEvent]) => {
                 return resourceWasAddedEvent.data.resource;
index 9c503ca..304f905 100644 (file)
@@ -19,19 +19,19 @@ function test()
         description: "Check if a resource has timing information.",
         test(resolve, reject) {
             Promise.all([
-                WebInspector.Frame.awaitEvent(WebInspector.Frame.Event.ResourceWasAdded),
-                WebInspector.Resource.awaitEvent(WebInspector.Resource.Event.ResponseReceived),
-                WebInspector.Resource.awaitEvent(WebInspector.Resource.Event.LoadingDidFinish)
+                WI.Frame.awaitEvent(WI.Frame.Event.ResourceWasAdded),
+                WI.Resource.awaitEvent(WI.Resource.Event.ResponseReceived),
+                WI.Resource.awaitEvent(WI.Resource.Event.LoadingDidFinish)
             ])
             .then(([resourceWasAddedEvent, responseReceivedEvent, loadingDidFinishEvent]) => {
                 let resource = resourceWasAddedEvent.data.resource;
 
-                InspectorTest.expectThat(resource instanceof WebInspector.Resource, "Resource should be created.");
+                InspectorTest.expectThat(resource instanceof WI.Resource, "Resource should be created.");
                 InspectorTest.expectThat(resource === responseReceivedEvent.target, "Added Resource received a response.");
                 InspectorTest.expectThat(resource === loadingDidFinishEvent.target, "Added Resource did finish loading.");
 
                 let timingData = resource.timingData;
-                InspectorTest.expectThat(timingData instanceof WebInspector.ResourceTimingData, "Newly added resource should have a resource timing model.");
+                InspectorTest.expectThat(timingData instanceof WI.ResourceTimingData, "Newly added resource should have a resource timing model.");
                 InspectorTest.expectThat(timingData.startTime > 0, "Resource should have a start time.");
                 InspectorTest.expectThat(timingData.requestStart > 0, "Resource should have a request start time.");
                 InspectorTest.expectThat(timingData.responseStart > 0, "Resource should have a response start time.");
index 8fcd5fa..75d0773 100644 (file)
@@ -39,15 +39,15 @@ TestPage.registerInitializer(function() {
                 else {
                     InspectorTest.evaluateInPage(`fetch(${JSON.stringify(url)})`);
                     promise = Promise.all([
-                        WebInspector.Frame.awaitEvent(WebInspector.Frame.Event.ResourceWasAdded),
-                        WebInspector.Resource.awaitEvent(WebInspector.Resource.Event.LoadingDidFinish),
+                        WI.Frame.awaitEvent(WI.Frame.Event.ResourceWasAdded),
+                        WI.Resource.awaitEvent(WI.Resource.Event.LoadingDidFinish),
                     ]).then(([resourceWasAddedEvent, loadCompleteEvent]) => {
                         return resourceWasAddedEvent.data.resource;
                     });
                 }
 
                 promise.then((resource) => {
-                    InspectorTest.assert(resource instanceof WebInspector.Resource, "Resource should be created.");
+                    InspectorTest.assert(resource instanceof WI.Resource, "Resource should be created.");
                     InspectorTest.expectEqual(resource.statusCode, statusCode, `statusCode should be ${statusCode}.`);
                     InspectorTest.expectEqual(resource.compressed, compressed, `compressed should be ${compressed}.`);
                     InspectorTest.expectEqual(resource.responseSource, responseSource, `responseSource should be ${String(responseSource)}.`);
index 9138ee0..fcc6467 100644 (file)
@@ -30,12 +30,12 @@ function test()
             test(resolve, reject) {
                 InspectorTest.evaluateInPage(expression);
                 Promise.all([
-                    WebInspector.Frame.awaitEvent(WebInspector.Frame.Event.ResourceWasAdded),
-                    WebInspector.Resource.awaitEvent(WebInspector.Resource.Event.ResponseReceived),
+                    WI.Frame.awaitEvent(WI.Frame.Event.ResourceWasAdded),
+                    WI.Resource.awaitEvent(WI.Resource.Event.ResponseReceived),
                     InspectorTest.awaitEvent("LoadComplete"),
                 ]).then(([resourceWasAddedEvent, responseReceivedEvent, loadCompleteEvent]) => {
                     let resource = resourceWasAddedEvent.data.resource;
-                    InspectorTest.expectThat(resource instanceof WebInspector.Resource, "Resource should be created.");
+                    InspectorTest.expectThat(resource instanceof WI.Resource, "Resource should be created.");
                     InspectorTest.expectEqual(resource, responseReceivedEvent.target, "Resource should receive a Response.");
                     if (statusCode)
                         InspectorTest.expectEqual(resource.statusCode, statusCode, `statusCode should be ${statusCode}`);
@@ -57,7 +57,7 @@ function test()
         name: "SetResourceCachingDisabled.DiskCache",
         description: "Fail to load a resource from the disk cache when resource caching is disabled",
         expression: `triggerDiskCacheLoad()`,
-        responseSource: WebInspector.Resource.ResponseSource.Network,
+        responseSource: WI.Resource.ResponseSource.Network,
         setup(resolve) { NetworkAgent.setResourceCachingDisabled(true); resolve(); },
         statusCode: 200,
     });
index 4f922c1..d9a37b6 100644 (file)
@@ -21,7 +21,7 @@ function test()
                 InspectorTest.reloadPage({ignoreCache});
                 InspectorTest.awaitEvent("LoadComplete").then((event) => {
                     let resource = null;
-                    for (let item of WebInspector.frameResourceManager.mainFrame.resourceCollection.items) {
+                    for (let item of WI.frameResourceManager.mainFrame.resourceCollection.items) {
                         if (pattern.test(item.url)) {
                             resource = item;
                             break;
@@ -32,7 +32,7 @@ function test()
                         reject();
                         return;
                     }
-                    InspectorTest.expectThat(resource instanceof WebInspector.Resource, "Resource should be exist.");
+                    InspectorTest.expectThat(resource instanceof WI.Resource, "Resource should be exist.");
                     InspectorTest.expectEqual(resource.statusCode, statusCode, `statusCode should be ${statusCode}`);
                     InspectorTest.expectEqual(resource.responseSource, responseSource, `responseSource should be ${String(responseSource)}`);
                 }).then(resolve, reject);
@@ -46,7 +46,7 @@ function test()
         pattern: /cached-script\.js$/,
         setup(resolve) { NetworkAgent.setResourceCachingDisabled(true); resolve(); },
         ignoreCache: false,
-        responseSource: WebInspector.Resource.ResponseSource.Network,
+        responseSource: WI.Resource.ResponseSource.Network,
         statusCode: 200,
     });
 
index ec9108b..ab1fcb2 100644 (file)
@@ -19,14 +19,14 @@ function test()
         description: "XHR with request data is encoded correctly.",
         test(resolve, reject) {
             InspectorTest.evaluateInPage(`createXHRResource()`);
-            WebInspector.Frame.singleFireEventListener(WebInspector.Frame.Event.ResourceWasAdded, (event) => {
+            WI.Frame.singleFireEventListener(WI.Frame.Event.ResourceWasAdded, (event) => {
                 let resource = event.data.resource;
-                InspectorTest.expectThat(resource instanceof WebInspector.Resource, "Resource should be created.");
+                InspectorTest.expectThat(resource instanceof WI.Resource, "Resource should be created.");
                 InspectorTest.expectThat(resource.requestData === "utf8=👍", "Request data should have expected content.");
-                resource.awaitEvent(WebInspector.Resource.Event.LoadingDidFinish)
+                resource.awaitEvent(WI.Resource.Event.LoadingDidFinish)
                     .then((event) => { InspectorTest.pass("Resource load should finish.") })
                     .then(resolve, reject);
-                resource.awaitEvent(WebInspector.Resource.Event.LoadingDidFail)
+                resource.awaitEvent(WI.Resource.Event.LoadingDidFail)
                     .then(() => { InspectorTest.fail("Resource should not have failed to load.") })
                     .then(reject, reject);
             });
index 785cfb3..4dfc736 100644 (file)
@@ -47,10 +47,10 @@ function test()
             name, description,
             test(resolve, reject) {
                 InspectorTest.evaluateInPage(expression);
-                WebInspector.Frame.awaitEvent(WebInspector.Frame.Event.ResourceWasAdded)
+                WI.Frame.awaitEvent(WI.Frame.Event.ResourceWasAdded)
                     .then((event) => {
                         let resource = event.data.resource;
-                        InspectorTest.expectEqual(resource.type, WebInspector.Resource.Type.XHR, "Resource should be XHR type.");
+                        InspectorTest.expectEqual(resource.type, WI.Resource.Type.XHR, "Resource should be XHR type.");
                         return resource.requestContent();
                     })
                     .then(contentHandler)
index 5853146..db18a9f 100644 (file)
@@ -40,7 +40,7 @@ ProtocolTest.Probe.sanitizeProbeSample = function(messageObject)
 
 ProtocolTest.Probe.stringifyProbeSample = function(ProbeSample)
 {
-    console.assert(ProbeSample instanceof WebInspector.ProbeSample, "Unexpected object type!");
+    console.assert(ProbeSample instanceof WI.ProbeSample, "Unexpected object type!");
     return JSON.stringify({
         "sampleId": ProbeSample.sampleId,
         "batchId": ProbeSample.batchId,
@@ -49,104 +49,104 @@ ProtocolTest.Probe.stringifyProbeSample = function(ProbeSample)
 
 ProtocolTest.Probe.installTracingListeners = function()
 {
-    if (!WebInspector.debuggerManager || !WebInspector.probeManager)
+    if (!WI.debuggerManager || !WI.probeManager)
         return;
 
-    WebInspector.debuggerManager.addEventListener(WebInspector.DebuggerManager.Event.BreakpointAdded, function(event) {
+    WI.debuggerManager.addEventListener(WI.DebuggerManager.Event.BreakpointAdded, function(event) {
         InspectorTest.log("Breakpoint was added.");
     });
 
-    WebInspector.debuggerManager.addEventListener(WebInspector.DebuggerManager.Event.BreakpointRemoved, function(event) {
+    WI.debuggerManager.addEventListener(WI.DebuggerManager.Event.BreakpointRemoved, function(event) {
         InspectorTest.log("Breakpoint was removed.");
     });
 
-    WebInspector.Breakpoint.addEventListener(WebInspector.Breakpoint.Event.DisabledStateDidChange, function(event) {
+    WI.Breakpoint.addEventListener(WI.Breakpoint.Event.DisabledStateDidChange, function(event) {
         var breakpoint = event.target;
-        console.assert(breakpoint instanceof WebInspector.Breakpoint, "Unexpected object type!");
+        console.assert(breakpoint instanceof WI.Breakpoint, "Unexpected object type!");
 
         InspectorTest.log("Breakpoint disabled state changed: " + breakpoint.disabled);
     });
 
-    WebInspector.Breakpoint.addEventListener(WebInspector.Breakpoint.Event.ResolvedStateDidChange, function(event) {
+    WI.Breakpoint.addEventListener(WI.Breakpoint.Event.ResolvedStateDidChange, function(event) {
         var breakpoint = event.target;
-        console.assert(breakpoint instanceof WebInspector.Breakpoint, "Unexpected object type!");
+        console.assert(breakpoint instanceof WI.Breakpoint, "Unexpected object type!");
 
         InspectorTest.log("Breakpoint resolved state changed: " + breakpoint.resolved);
     });
 
-    WebInspector.Breakpoint.addEventListener(WebInspector.Breakpoint.Event.AutoContinueDidChange, function(event) {
+    WI.Breakpoint.addEventListener(WI.Breakpoint.Event.AutoContinueDidChange, function(event) {
         var breakpoint = event.target;
-        console.assert(breakpoint instanceof WebInspector.Breakpoint, "Unexpected object type!");
+        console.assert(breakpoint instanceof WI.Breakpoint, "Unexpected object type!");
 
         InspectorTest.log("Breakpoint autocontinue state changed: " + breakpoint.autoContinue);
     });
 
-    WebInspector.Breakpoint.addEventListener(WebInspector.Breakpoint.Event.ConditionDidChange, function(event) {
+    WI.Breakpoint.addEventListener(WI.Breakpoint.Event.ConditionDidChange, function(event) {
         var breakpoint = event.target;
-        console.assert(breakpoint instanceof WebInspector.Breakpoint, "Unexpected object type!");
+        console.assert(breakpoint instanceof WI.Breakpoint, "Unexpected object type!");
 
         InspectorTest.log("Breakpoint condition changed: " + breakpoint.condition);
     });
 
-    WebInspector.Breakpoint.addEventListener(WebInspector.Breakpoint.Event.ActionsDidChange, function(event) {
+    WI.Breakpoint.addEventListener(WI.Breakpoint.Event.ActionsDidChange, function(event) {
         var breakpoint = event.target;
-        console.assert(breakpoint instanceof WebInspector.Breakpoint, "Unexpected object type!");
+        console.assert(breakpoint instanceof WI.Breakpoint, "Unexpected object type!");
 
         InspectorTest.log("Breakpoint actions changed. New count: " + breakpoint.actions.length);
     });
 
-    WebInspector.probeManager.addEventListener(WebInspector.ProbeManager.Event.ProbeSetAdded, function(event) {
+    WI.probeManager.addEventListener(WI.ProbeManager.Event.ProbeSetAdded, function(event) {
         var probeSet = event.data.probeSet;
-        console.assert(probeSet instanceof WebInspector.ProbeSet, "Unexpected object type!");
+        console.assert(probeSet instanceof WI.ProbeSet, "Unexpected object type!");
 
-        InspectorTest.log("Probe set was added. New count: " + WebInspector.probeManager.probeSets.length);
+        InspectorTest.log("Probe set was added. New count: " + WI.probeManager.probeSets.length);
     });
 
-    WebInspector.probeManager.addEventListener(WebInspector.ProbeManager.Event.ProbeSetRemoved, function(event) {
+    WI.probeManager.addEventListener(WI.ProbeManager.Event.ProbeSetRemoved, function(event) {
         var probeSet = event.data.probeSet;
-        console.assert(probeSet instanceof WebInspector.ProbeSet, "Unexpected object type!");
+        console.assert(probeSet instanceof WI.ProbeSet, "Unexpected object type!");
 
-        InspectorTest.log("Probe set was removed. New count: " + WebInspector.probeManager.probeSets.length);
+        InspectorTest.log("Probe set was removed. New count: " + WI.probeManager.probeSets.length);
     });
 
-    WebInspector.Probe.addEventListener(WebInspector.Probe.Event.ExpressionChanged, function(event) {
+    WI.Probe.addEventListener(WI.Probe.Event.ExpressionChanged, function(event) {
         var probe = event.target;
-        console.assert(probe instanceof WebInspector.Probe, "Unexpected object type!");
+        console.assert(probe instanceof WI.Probe, "Unexpected object type!");
 
         InspectorTest.log("Probe with identifier " + probe.id + " changed expression: " + probe.expression);
     });
 
-    WebInspector.Probe.addEventListener(WebInspector.Probe.Event.SampleAdded, function(event) {
+    WI.Probe.addEventListener(WI.Probe.Event.SampleAdded, function(event) {
         var probe = event.target;
         var sample = event.data;
-        console.assert(probe instanceof WebInspector.Probe, "Unexpected object type!");
-        console.assert(sample instanceof WebInspector.ProbeSample, "Unexpected object type!");
+        console.assert(probe instanceof WI.Probe, "Unexpected object type!");
+        console.assert(sample instanceof WI.ProbeSample, "Unexpected object type!");
 
         InspectorTest.log("Probe with identifier " + probe.id + " added sample: " + sample);
     });
 
-    WebInspector.Probe.addEventListener(WebInspector.Probe.Event.SamplesCleared, function(event) {
+    WI.Probe.addEventListener(WI.Probe.Event.SamplesCleared, function(event) {
         var probe = event.target;
-        console.assert(probe instanceof WebInspector.Probe, "Unexpected object type!");
+        console.assert(probe instanceof WI.Probe, "Unexpected object type!");
 
         InspectorTest.log("Probe with identifier " + probe.id + " cleared all samples.");
     });
 
-    WebInspector.ProbeSet.addEventListener(WebInspector.ProbeSet.Event.ProbeAdded, function(event) {
+    WI.ProbeSet.addEventListener(WI.ProbeSet.Event.ProbeAdded, function(event) {
         var probe = event.data;
         var probeSet = event.target;
-        console.assert(probe instanceof WebInspector.Probe, "Unexpected object type!");
-        console.assert(probeSet instanceof WebInspector.ProbeSet, "Unexpected object type!");
+        console.assert(probe instanceof WI.Probe, "Unexpected object type!");
+        console.assert(probeSet instanceof WI.ProbeSet, "Unexpected object type!");
 
         InspectorTest.log("Probe with identifier " + probe.id + " was added to probe set.");
         InspectorTest.log("Probe set's probe count: " + probeSet.probes.length);
     });
 
-    WebInspector.ProbeSet.addEventListener(WebInspector.ProbeSet.Event.ProbeRemoved, function(event) {
+    WI.ProbeSet.addEventListener(WI.ProbeSet.Event.ProbeRemoved, function(event) {
         var probe = event.data;
         var probeSet = event.target;
-        console.assert(probe instanceof WebInspector.Probe, "Unexpected object type!");
-        console.assert(probeSet instanceof WebInspector.ProbeSet, "Unexpected object type!");
+        console.assert(probe instanceof WI.Probe, "Unexpected object type!");
+        console.assert(probeSet instanceof WI.ProbeSet, "Unexpected object type!");
 
         InspectorTest.log("Probe with identifier " + probe.id + " was removed from probe set.");
         InspectorTest.log("Probe set's probe count: " + probeSet.probes.length);
index c4a7dec..595115e 100644 (file)
@@ -14,7 +14,7 @@ function triggerWorkerStart() {
 function test()
 {
     let workerTarget;
-    let mainTarget = WebInspector.mainTarget;
+    let mainTarget = WI.mainTarget;
 
     function sanitizeURL(url) {
         if (!url)
@@ -36,7 +36,7 @@ function test()
 
     function dumpWorkerScripts() {
         InspectorTest.log("SCRIPTS:");
-        let targetData = WebInspector.debuggerManager.dataForTarget(workerTarget);
+        let targetData = WI.debuggerManager.dataForTarget(workerTarget);
         let urls = [];
         for (let script of targetData.scripts)
             urls.push(sanitizeURL(script.url));
@@ -59,21 +59,21 @@ function test()
         test(resolve, reject) {
             InspectorTest.evaluateInPage("triggerWorkerStart()");
 
-            WebInspector.targetManager.singleFireEventListener(WebInspector.TargetManager.Event.TargetAdded, (event) => {
+            WI.targetManager.singleFireEventListener(WI.TargetManager.Event.TargetAdded, (event) => {
                 workerTarget = event.data.target;
-                InspectorTest.assert(workerTarget instanceof WebInspector.Target);
-                InspectorTest.expectEqual(workerTarget.type, WebInspector.Target.Type.Worker, "Added Target should have Worker type.");
+                InspectorTest.assert(workerTarget instanceof WI.Target);
+                InspectorTest.expectEqual(workerTarget.type, WI.Target.Type.Worker, "Added Target should have Worker type.");
             });
 
             let seen = 0;
             const expected = 3;
-            let listener = WebInspector.debuggerManager.addEventListener(WebInspector.DebuggerManager.Event.ScriptAdded, (event) => {
+            let listener = WI.debuggerManager.addEventListener(WI.DebuggerManager.Event.ScriptAdded, (event) => {
                 if (event.data.script.target === workerTarget)
                     seen++;
                 if (seen !== expected)
                     return;
 
-                WebInspector.debuggerManager.removeEventListener(WebInspector.DebuggerManager.Event.ScriptAdded, listener);
+                WI.debuggerManager.removeEventListener(WI.DebuggerManager.Event.ScriptAdded, listener);
                 dumpWorkerResources();
                 dumpWorkerScripts();
                 resolve();
index 51a0ce7..11e0f58 100644 (file)
@@ -23,15 +23,15 @@ function test()
         let readyStateString = "";
 
         switch (readyState) {
-        case WebInspector.WebSocketResource.ReadyState.Closed:
+        case WI.WebSocketResource.ReadyState.Closed:
             readyStateString = "closed";
             break;
 
-        case WebInspector.WebSocketResource.ReadyState.Connecting:
+        case WI.WebSocketResource.ReadyState.Connecting:
             readyStateString = "connecting";
             break;
 
-        case WebInspector.WebSocketResource.ReadyState.Open:
+        case WI.WebSocketResource.ReadyState.Open:
             readyStateString = "open";
             break;
 
@@ -45,7 +45,7 @@ function test()
         description: "Test that the existing websocket is sent to the frontend when it is first opened.",
         test(resolve, reject) {
             const url = "ws://127.0.0.1:8880/websocket/tests/hybi/inspector/echo";
-            let webSocketResources = WebInspector.frameResourceManager.mainFrame.resourceCollectionForType(WebInspector.Resource.Type.WebSocket);
+            let webSocketResources = WI.frameResourceManager.mainFrame.resourceCollectionForType(WI.Resource.Type.WebSocket);
             InspectorTest.expectEqual(webSocketResources.items.size, 1, "Should have 1 WebSocketResource");
 
             let webSocketResource = webSocketResources.toArray()[0];
@@ -54,7 +54,7 @@ function test()
                 return;
             }
 
-            InspectorTest.expectThat(webSocketResource instanceof WebInspector.WebSocketResource, "Resource should be a WebSocket.");
+            InspectorTest.expectThat(webSocketResource instanceof WI.WebSocketResource, "Resource should be a WebSocket.");
             InspectorTest.expectEqual(webSocketResource.url, url, `Resource URL should be "${url}".`);
             InspectorTest.expectThat(!isEmptyObject(webSocketResource.requestHeaders), "Resource should have request headers.");
             InspectorTest.expectThat(!isEmptyObject(webSocketResource.responseHeaders), "Resource should have response headers.");
index 7d8b160..7411545 100644 (file)
@@ -47,13 +47,13 @@ function test()
         let lastMessageWalltime;
         let resource = event.data.resource;
 
-        resource.addEventListener(WebInspector.WebSocketResource.Event.FrameAdded, function(event) {
+        resource.addEventListener(WI.WebSocketResource.Event.FrameAdded, function(event) {
             let frame = event.data;
             frameAddedCount++;
 
             if (frameAddedCount <= 5) {
                 InspectorTest.expectEqual(frame.data, null, "Frame should not have data.");
-                InspectorTest.expectEqual(frame.opcode, WebInspector.WebSocketResource.OpCodes.BinaryFrame, "Frame should be binary.");
+                InspectorTest.expectEqual(frame.opcode, WI.WebSocketResource.OpCodes.BinaryFrame, "Frame should be binary.");
 
                 if (frameAddedCount === 1) {
                     InspectorTest.expectThat(frame.isOutgoing, "Frame should be outgoing.");
@@ -74,7 +74,7 @@ function test()
 
         let sizeDidChangeCount = 0;
 
-        resource.addEventListener(WebInspector.Resource.Event.SizeDidChange, function(event) {
+        resource.addEventListener(WI.Resource.Event.SizeDidChange, function(event) {
             sizeDidChangeCount++;
 
             if (sizeDidChangeCount === 1)
@@ -95,7 +95,7 @@ function test()
         name: "WebSocket.BinaryBlob",
         description: "Should receive binary blob WebSocket messages.",
         test(resolve, reject) {
-            WebInspector.Frame.singleFireEventListener(WebInspector.Frame.Event.ResourceWasAdded, resourceWasAdded.bind(null, resolve, reject));
+            WI.Frame.singleFireEventListener(WI.Frame.Event.ResourceWasAdded, resourceWasAdded.bind(null, resolve, reject));
             InspectorTest.evaluateInPage(`createWebSocketConnection("blob")`);
         }
     });
@@ -104,7 +104,7 @@ function test()
         name: "WebSocket.ArrayBuffer",
         description: "Should receive ArrayBuffer WebSocket messages.",
         test(resolve, reject) {
-            WebInspector.Frame.singleFireEventListener(WebInspector.Frame.Event.ResourceWasAdded, resourceWasAdded.bind(null, resolve, reject));
+            WI.Frame.singleFireEventListener(WI.Frame.Event.ResourceWasAdded, resourceWasAdded.bind(null, resolve, reject));
             InspectorTest.evaluateInPage(`createWebSocketConnection("arraybuffer")`);
         }
     });
index 728a3b5..ce85872 100644 (file)
@@ -24,32 +24,32 @@ function test()
 
     suite.addTestCase({
         name: "WebSocket.ClientClose",
-        description: "WebInspector.WebSocketResource.Event.ReadyStateChanged events are fired in order when WebSocket connection is closed by the client.",
+        description: "WI.WebSocketResource.Event.ReadyStateChanged events are fired in order when WebSocket connection is closed by the client.",
         test(resolve, reject) {
-            WebInspector.Frame.singleFireEventListener(WebInspector.Frame.Event.ResourceWasAdded, function(event) {
+            WI.Frame.singleFireEventListener(WI.Frame.Event.ResourceWasAdded, function(event) {
                 let resource = event.data.resource;
 
-                InspectorTest.expectThat(resource instanceof WebInspector.WebSocketResource, "WebSocketResource should be created.");
-                InspectorTest.expectEqual(resource.type, WebInspector.Resource.Type.WebSocket, "WebSocketResource should be a WebSocket type.");
-                InspectorTest.expectEqual(resource.readyState, WebInspector.WebSocketResource.ReadyState.Connecting, "WebSocketResource should be in a Connecting state.");
+                InspectorTest.expectThat(resource instanceof WI.WebSocketResource, "WebSocketResource should be created.");
+                InspectorTest.expectEqual(resource.type, WI.Resource.Type.WebSocket, "WebSocketResource should be a WebSocket type.");
+                InspectorTest.expectEqual(resource.readyState, WI.WebSocketResource.ReadyState.Connecting, "WebSocketResource should be in a Connecting state.");
 
                 let runCount = 0;
 
-                resource.addEventListener(WebInspector.WebSocketResource.Event.ReadyStateChanged, function(event) {
+                resource.addEventListener(WI.WebSocketResource.Event.ReadyStateChanged, function(event) {
                     let data = event.data;
                     runCount++;
 
                     if (runCount === 1) {
-                        InspectorTest.expectEqual(data.previousState, WebInspector.WebSocketResource.ReadyState.Connecting, "WebSocketResource previous state should be Connecting.");
-                        InspectorTest.expectEqual(data.state, WebInspector.WebSocketResource.ReadyState.Open, "WebSocketResource state should change to Open.");
-                        InspectorTest.expectEqual(resource.readyState, WebInspector.WebSocketResource.ReadyState.Open, "WebSocketResource should be in a Open state.");
+                        InspectorTest.expectEqual(data.previousState, WI.WebSocketResource.ReadyState.Connecting, "WebSocketResource previous state should be Connecting.");
+                        InspectorTest.expectEqual(data.state, WI.WebSocketResource.ReadyState.Open, "WebSocketResource state should change to Open.");
+                        InspectorTest.expectEqual(resource.readyState, WI.WebSocketResource.ReadyState.Open, "WebSocketResource should be in a Open state.");
                         return;
                     }
 
                     if (runCount === 2) {
-                        InspectorTest.expectEqual(data.previousState, WebInspector.WebSocketResource.ReadyState.Open, "WebSocketResource previous state should be Open.");
-                        InspectorTest.expectEqual(data.state, WebInspector.WebSocketResource.ReadyState.Closed, "WebSocketResource state should change to Closed.");
-                        InspectorTest.expectEqual(resource.readyState, WebInspector.WebSocketResource.ReadyState.Closed, "WebSocketResource should be in a Closed state.");
+                        InspectorTest.expectEqual(data.previousState, WI.WebSocketResource.ReadyState.Open, "WebSocketResource previous state should be Open.");
+                        InspectorTest.expectEqual(data.state, WI.WebSocketResource.ReadyState.Closed, "WebSocketResource state should change to Closed.");
+                        InspectorTest.expectEqual(resource.readyState, WI.WebSocketResource.ReadyState.Closed, "WebSocketResource should be in a Closed state.");
                         resolve();
                     }
                 });
index 2baa3e4..b67bf95 100644 (file)
@@ -24,7 +24,7 @@ function test()
         description: "Should return a valid response for the given request identifier.",
         test(resolve, reject) {
             const url = "ws://127.0.0.1:8880/websocket/tests/hybi/inspector/echo";
-            let webSocketResource = WebInspector.frameResourceManager.resourceForURL(url);
+            let webSocketResource = WI.frameResourceManager.resourceForURL(url);
             if (!webSocketResource) {
                 reject("Missing WebSocket resource.");
                 return;
index aaa24e0..aaf0d12 100644 (file)
@@ -30,39 +30,39 @@ function test()
         name: "SendAndReceive",
         description: "Should send and receive text frames.",
         test(resolve, reject) {
-            WebInspector.Frame.singleFireEventListener(WebInspector.Frame.Event.ResourceWasAdded, function(event) {
+            WI.Frame.singleFireEventListener(WI.Frame.Event.ResourceWasAdded, function(event) {
 
                 let frameAddedCount = 0;
                 let lastMessageWalltime;
                 let resource = event.data.resource;
 
-                resource.addEventListener(WebInspector.WebSocketResource.Event.FrameAdded, function(event) {
+                resource.addEventListener(WI.WebSocketResource.Event.FrameAdded, function(event) {
                     let frame = event.data;
                     frameAddedCount++;
 
                     if (frameAddedCount === 1) {
 
                         InspectorTest.expectEqual(frame.data, "Hello World! Привет Мир!", "Frame data should be 'Hello World! Привет Мир!'");
-                        InspectorTest.expectEqual(frame.opcode, WebInspector.WebSocketResource.OpCodes.TextFrame, "Frame should be text.");
+                        InspectorTest.expectEqual(frame.opcode, WI.WebSocketResource.OpCodes.TextFrame, "Frame should be text.");
                         InspectorTest.expectThat(frame.isOutgoing, "Frame should be outgoing.");
                         InspectorTest.expectThat(typeof frame.walltime === "number", "Message is walltime.");
 
                     } else if (frameAddedCount === 2) {
 
                         InspectorTest.expectEqual(frame.data, "Hello World! Привет Мир!", "Frame data should be 'Hello World! Привет Мир!'");
-                        InspectorTest.expectEqual(frame.opcode, WebInspector.WebSocketResource.OpCodes.TextFrame, "Frame should be text.");
+                        InspectorTest.expectEqual(frame.opcode, WI.WebSocketResource.OpCodes.TextFrame, "Frame should be text.");
                         InspectorTest.expectThat(!frame.isOutgoing, "Frame should be incoming.");
                         InspectorTest.expectThat(frame.walltime > lastMessageWalltime, "Frame walltime should be greater than the previous one.");
 
                     } else if (frameAddedCount === 3) {
 
-                        InspectorTest.expectEqual(frame.opcode, WebInspector.WebSocketResource.OpCodes.ConnectionCloseFrame, "Frame should close connection.");
+                        InspectorTest.expectEqual(frame.opcode, WI.WebSocketResource.OpCodes.ConnectionCloseFrame, "Frame should close connection.");
                         InspectorTest.expectThat(frame.isOutgoing, "Frame should be outgoing.");
                         InspectorTest.expectThat(frame.walltime > lastMessageWalltime, "Frame walltime should be greater than the previous one.");
 
                     } else if (frameAddedCount === 4) {
 
-                        InspectorTest.expectEqual(frame.opcode, WebInspector.WebSocketResource.OpCodes.ConnectionCloseFrame, "Frame should close connection.");
+                        InspectorTest.expectEqual(frame.opcode, WI.WebSocketResource.OpCodes.ConnectionCloseFrame, "Frame should close connection.");
                         InspectorTest.expectThat(!frame.isOutgoing, "Frame should be incoming.");
                         InspectorTest.expectThat(frame.walltime > lastMessageWalltime, "Frame walltime should be greater than the previous one.");
                         resolve();
@@ -73,7 +73,7 @@ function test()
 
                 let sizeDidChangeCount = 0;
 
-                resource.addEventListener(WebInspector.Resource.Event.SizeDidChange, function(event) {
+                resource.addEventListener(WI.Resource.Event.SizeDidChange, function(event) {
                     sizeDidChangeCount++;
 
                     if (sizeDidChangeCount === 1)
index 8cb0adc..1acbf85 100644 (file)
@@ -14,32 +14,32 @@ function test()
 
     suite.addTestCase({
         name: "WebSocket.ServerClose",
-        description: "WebInspector.WebSocketResource.Event.ReadyStateChanged events are fired in order when WebSocket connection is closed by the server.",
+        description: "WI.WebSocketResource.Event.ReadyStateChanged events are fired in order when WebSocket connection is closed by the server.",
         test(resolve, reject) {
-            WebInspector.Frame.singleFireEventListener(WebInspector.Frame.Event.ResourceWasAdded, function(event) {
+            WI.Frame.singleFireEventListener(WI.Frame.Event.ResourceWasAdded, function(event) {
                 let resource = event.data.resource;
 
-                InspectorTest.expectThat(resource instanceof WebInspector.WebSocketResource, "WebSocketResource should be created.");
-                InspectorTest.expectEqual(resource.type, WebInspector.Resource.Type.WebSocket, "WebSocketResource should be a WebSocket type.");
-                InspectorTest.expectEqual(resource.readyState, WebInspector.WebSocketResource.ReadyState.Connecting, "WebSocketResource should be in a Connecting state.");
+                InspectorTest.expectThat(resource instanceof WI.WebSocketResource, "WebSocketResource should be created.");
+                InspectorTest.expectEqual(resource.type, WI.Resource.Type.WebSocket, "WebSocketResource should be a WebSocket type.");
+                InspectorTest.expectEqual(resource.readyState, WI.WebSocketResource.ReadyState.Connecting, "WebSocketResource should be in a Connecting state.");
 
                 let runCount = 0;
 
-                resource.addEventListener(WebInspector.WebSocketResource.Event.ReadyStateChanged, function(event) {
+                resource.addEventListener(WI.WebSocketResource.Event.ReadyStateChanged, function(event) {
                     let data = event.data;
                     runCount++;
 
                     if (runCount === 1) {
-                        InspectorTest.expectEqual(data.previousState, WebInspector.WebSocketResource.ReadyState.Connecting, "WebSocketResource previous state should be Connecting.");
-                        InspectorTest.expectEqual(data.state, WebInspector.WebSocketResource.ReadyState.Open, "WebSocketResource state should change to Open.");
-                        InspectorTest.expectEqual(resource.readyState, WebInspector.WebSocketResource.ReadyState.Open, "WebSocketResource should be in a Open state.");
+                        InspectorTest.expectEqual(data.previousState, WI.WebSocketResource.ReadyState.Connecting, "WebSocketResource previous state should be Connecting.");
+                        InspectorTest.expectEqual(data.state, WI.WebSocketResource.ReadyState.Open, "WebSocketResource state should change to Open.");
+                        InspectorTest.expectEqual(resource.readyState, WI.WebSocketResource.ReadyState.Open, "WebSocketResource should be in a Open state.");
                         return;
                     }
 
                     if (runCount === 2) {
-                        InspectorTest.expectEqual(data.previousState, WebInspector.WebSocketResource.ReadyState.Open, "WebSocketResource previous state should be Open.");
-                        InspectorTest.expectEqual(data.state, WebInspector.WebSocketResource.ReadyState.Closed, "WebSocketResource state should change to Closed.");
-                        InspectorTest.expectEqual(resource.readyState, WebInspector.WebSocketResource.ReadyState.Closed, "WebSocketResource should be in a Closed state.");
+                        InspectorTest.expectEqual(data.previousState, WI.WebSocketResource.ReadyState.Open, "WebSocketResource previous state should be Open.");
+                        InspectorTest.expectEqual(data.state, WI.WebSocketResource.ReadyState.Closed, "WebSocketResource state should change to Closed.");
+                        InspectorTest.expectEqual(resource.readyState, WI.WebSocketResource.ReadyState.Closed, "WebSocketResource should be in a Closed state.");
                         resolve();
                     }
                 });
index 22b62ce..b9cd98f 100644 (file)
@@ -20,12 +20,12 @@ function test() {
             name,
             description: "Check that created canvases have the correct type and attributes sent to the frontend.",
             test(resolve, reject) {
-                WebInspector.canvasManager.awaitEvent(WebInspector.CanvasManager.Event.CanvasWasAdded)
+                WI.canvasManager.awaitEvent(WI.CanvasManager.Event.CanvasWasAdded)
                 .then((event) => {
                     let canvas = event.data.canvas;
                     InspectorTest.log("Added canvas.");
 
-                    let contextDisplayName = WebInspector.Canvas.displayNameForContextType(contextType);
+                    let contextDisplayName = WI.Canvas.displayNameForContextType(contextType);
                     InspectorTest.expectEqual(canvas.contextType, contextType, `Canvas context should be "${contextDisplayName}".`);
                     InspectorTest.log(JSON.stringify(canvas.contextAttributes, null, 2));
 
@@ -34,7 +34,7 @@ function test() {
                 })
                 .then(resolve, reject);
 
-                let type = contextType === WebInspector.Canvas.ContextType.Canvas2D ? "2d" : "webgl";
+                let type = contextType === WI.Canvas.ContextType.Canvas2D ? "2d" : "webgl";
                 let attributes = JSON.stringify(contextAttributes);
                 InspectorTest.evaluateInPage(`createCanvas("${type}", ${attributes})`);
             }
@@ -44,15 +44,15 @@ function test() {
     const testCases = [
         {
             name: "Create2DCanvasContext",
-            contextType: WebInspector.Canvas.ContextType.Canvas2D,
+            contextType: WI.Canvas.ContextType.Canvas2D,
         },
         {
             name: "CreateWebGLCanvasContext",
-            contextType: WebInspector.Canvas.ContextType.WebGL,
+            contextType: WI.Canvas.ContextType.WebGL,
         },
         {
             name: "CreateWebGLCanvasContextWithAttributes",
-            contextType: WebInspector.Canvas.ContextType.WebGL,
+            contextType: WI.Canvas.ContextType.WebGL,
             contextAttributes: {alpha: false},
         }
     ];
index 242b509..d51914b 100644 (file)
@@ -11,16 +11,16 @@ function test() {
     addSimpleTestCase({
         name: "Attached",
         expression: `createAttachedCanvas("2d")`,
-        contextType: WebInspector.Canvas.ContextType.Canvas2D,
+        contextType: WI.Canvas.ContextType.Canvas2D,
     });
 
     addSimpleTestCase({
         name: "Detached",
         expression: `createDetachedCanvas("2d")`,
-        contextType: WebInspector.Canvas.ContextType.Canvas2D,
+        contextType: WI.Canvas.ContextType.Canvas2D,
     });
 
-    addCSSCanvasTestCase(WebInspector.Canvas.ContextType.Canvas2D);
+    addCSSCanvasTestCase(WI.Canvas.ContextType.Canvas2D);
 
     suite.runTestCasesAndFinish();
 }
index fdf1c68..2bd5d74 100644 (file)
@@ -11,16 +11,16 @@ function test() {
     addSimpleTestCase({
         name: "Attached",
         expression: `createAttachedCanvas("webgl")`,
-        contextType: WebInspector.Canvas.ContextType.WebGL,
+        contextType: WI.Canvas.ContextType.WebGL,
     });
 
     addSimpleTestCase({
         name: "Detached",
         expression: `createDetachedCanvas("webgl")`,
-        contextType: WebInspector.Canvas.ContextType.WebGL,
+        contextType: WI.Canvas.ContextType.WebGL,
     });
 
-    addCSSCanvasTestCase(WebInspector.Canvas.ContextType.WebGL);
+    addCSSCanvasTestCase(WI.Canvas.ContextType.WebGL);
 
     suite.runTestCasesAndFinish();
 }
index 51c4274..e1ec7cc 100644 (file)
@@ -14,16 +14,16 @@ function test() {
     addSimpleTestCase({
         name: "Attached",
         expression: `createAttachedCanvas("webgl2")`,
-        contextType: WebInspector.Canvas.ContextType.WebGL2,
+        contextType: WI.Canvas.ContextType.WebGL2,
     });
 
     addSimpleTestCase({
         name: "Detached",
         expression: `createDetachedCanvas("webgl2")`,
-        contextType: WebInspector.Canvas.ContextType.WebGL2,
+        contextType: WI.Canvas.ContextType.WebGL2,
     });
 
-    addCSSCanvasTestCase(WebInspector.Canvas.ContextType.WebGL2);
+    addCSSCanvasTestCase(WI.Canvas.ContextType.WebGL2);
 
     suite.runTestCasesAndFinish();
 }
index 495d26c..5a396b7 100644 (file)
@@ -14,16 +14,16 @@ function test() {
     addSimpleTestCase({
         name: "Attached",
         expression: `createAttachedCanvas("webgpu")`,
-        contextType: WebInspector.Canvas.ContextType.WebGPU,
+        contextType: WI.Canvas.ContextType.WebGPU,
     });
 
     addSimpleTestCase({
         name: "Detached",
         expression: `createDetachedCanvas("webgpu")`,
-        contextType: WebInspector.Canvas.ContextType.WebGPU,
+        contextType: WI.Canvas.ContextType.WebGPU,
     });
 
-    addCSSCanvasTestCase(WebInspector.Canvas.ContextType.WebGPU);
+    addCSSCanvasTestCase(WI.Canvas.ContextType.WebGPU);
 
     suite.runTestCasesAndFinish();
 }
index c10baf0..7fbaf6a 100644 (file)
@@ -40,7 +40,7 @@ function test() {
         name: "Canvas.CSSCanvasClients.InitialLoad",
         description: "Check that the CanvasManager has one CSS canvas initially.",
         test(resolve, reject) {
-            let canvases = WebInspector.canvasManager.canvases;
+            let canvases = WI.canvasManager.canvases;
             InspectorTest.expectEqual(canvases.length, 1, "CanvasManager should have one canvas.");
             if (!canvases.length) {
                 reject("Missing canvas.");
@@ -60,7 +60,7 @@ function test() {
         name: "Canvas.CSSCanvasClients.Create",
         description: "Check that creating a CSS canvas client node is tracked correctly.",
         test(resolve, reject) {
-            WebInspector.Canvas.awaitEvent(WebInspector.Canvas.Event.CSSCanvasClientNodesChanged)
+            WI.Canvas.awaitEvent(WI.Canvas.Event.CSSCanvasClientNodesChanged)
             .then((event) => {
                 InspectorTest.expectEqual(event.target.cssCanvasName, "css-canvas", `Canvas with created client should have CSS name "css-canvas".`);
                 event.target.requestCSSCanvasClientNodes((clientNodes) => {
@@ -78,7 +78,7 @@ function test() {
         name: "Canvas.CSSCanvasClients.Destroy",
         description: "Check that destroying a CSS canvas client node is tracked correctly.",
         test(resolve, reject) {
-            WebInspector.Canvas.awaitEvent(WebInspector.Canvas.Event.CSSCanvasClientNodesChanged)
+            WI.Canvas.awaitEvent(WI.Canvas.Event.CSSCanvasClientNodesChanged)
             .then((event) => {
                 InspectorTest.expectEqual(event.target.cssCanvasName, "css-canvas", `Canvas with destroyed client should have CSS name "css-canvas".`);
                 event.target.requestCSSCanvasClientNodes((clientNodes) => {
index 76df193..2a49e03 100644 (file)
@@ -28,7 +28,7 @@ function test() {
             // performed on that canvas that requires the image buffer.  A blank canvas that was
             // just created will not have a buffer, so its memory cost will be 0/NaN.
 
-            let canvases = WebInspector.canvasManager.canvases.filter((canvas) => canvas.contextType === WebInspector.Canvas.ContextType.Canvas2D);
+            let canvases = WI.canvasManager.canvases.filter((canvas) => canvas.contextType === WI.Canvas.ContextType.Canvas2D);
             if (!canvases.length) {
                 reject("Missing 2D canvas.");
                 return;
@@ -45,7 +45,7 @@ function test() {
         name: "Canvas.memory.canvasMemoryChanged",
         description: "Check that memory cost is updated when the backend value changes.",
         test(resolve, reject) {
-            let canvases = WebInspector.canvasManager.canvases.filter((canvas) => canvas.contextType === WebInspector.Canvas.ContextType.Canvas2D);
+            let canvases = WI.canvasManager.canvases.filter((canvas) => canvas.contextType === WI.Canvas.ContextType.Canvas2D);
             if (!canvases.length) {
                 reject("Missing 2D canvas.");
                 return;
@@ -53,7 +53,7 @@ function test() {
 
             InspectorTest.assert(canvases.length === 1, "There should only be one canvas-2d.");
 
-            canvases[0].awaitEvent(WebInspector.Canvas.Event.MemoryChanged)
+            canvases[0].awaitEvent(WI.Canvas.Event.MemoryChanged)
             .then((event) => {
                 InspectorTest.log(`Memory cost of canvas updated to ${event.target.memoryCost}.`);
             })
index 195f790..7d89339 100644 (file)
@@ -390,7 +390,7 @@ function test() {
     let suite = InspectorTest.createAsyncSuite("Canvas.recording2D");
 
     function getCanvas() {
-        let canvases = WebInspector.canvasManager.canvases.filter((canvas) => canvas.contextType === WebInspector.Canvas.ContextType.Canvas2D);
+        let canvases = WI.canvasManager.canvases.filter((canvas) => canvas.contextType === WI.Canvas.ContextType.Canvas2D);
         InspectorTest.assert(canvases.length === 1, "There should only be one canvas-2d.");
         if (canvases.length !== 1)
             return null;
@@ -404,7 +404,7 @@ function test() {
             return;
         }
 
-        WebInspector.canvasManager.awaitEvent(WebInspector.CanvasManager.Event.RecordingFinished)
+        WI.canvasManager.awaitEvent(WI.CanvasManager.Event.RecordingFinished)
         .then((event) => {
             InspectorTest.evaluateInPage(`cancelActions()`);
 
@@ -468,7 +468,7 @@ function test() {
                 return;
             }
 
-            WebInspector.canvasManager.awaitEvent(WebInspector.CanvasManager.Event.RecordingFinished)
+            WI.canvasManager.awaitEvent(WI.CanvasManager.Event.RecordingFinished)
             .then((event) => {
                 let recording = event.data.recording.toJSON();
 
index 93da8e9..3a02e23 100644 (file)
@@ -18,7 +18,7 @@ function test() {
         name: "Canvas.requestContent2D.validCanvasId",
         description: "Get the base64 encoded data for the canvas on the page with the given type.",
         test(resolve, reject) {
-            let canvas = WebInspector.canvasManager.canvases.find((canvas) => canvas.contextType === WebInspector.Canvas.ContextType.Canvas2D);
+            let canvas = WI.canvasManager.canvases.find((canvas) => canvas.contextType === WI.Canvas.ContextType.Canvas2D);
             if (!canvas) {
                 reject(`Missing Canvas.`);
                 return;
index 69b2791..9ec6b8c 100644 (file)
@@ -18,7 +18,7 @@ function test() {
         name: "Canvas.requestContentWebGL.validCanvasId",
         description: "Get the base64 encoded data for the WebGL canvas on the page.",
         test(resolve, reject) {
-            let canvas = WebInspector.canvasManager.canvases.find((canvas) => canvas.contextType === WebInspector.Canvas.ContextType.WebGL);
+            let canvas = WI.canvasManager.canvases.find((canvas) => canvas.contextType === WI.Canvas.ContextType.WebGL);
             if (!canvas) {
                 reject(`Missing Canvas.`);
                 return;
index 2b5f6ee..9af5894 100644 (file)
@@ -21,7 +21,7 @@ function test() {
         name: "Canvas.requestContentWebGL2.validCanvasId",
         description: "Get the base64 encoded data for the WebGL2 canvas on the page.",
         test(resolve, reject) {
-            let canvas = WebInspector.canvasManager.canvases.find((canvas) => canvas.contextType === WebInspector.Canvas.ContextType.WebGL2);
+            let canvas = WI.canvasManager.canvases.find((canvas) => canvas.contextType === WI.Canvas.ContextType.WebGL2);
             if (!canvas) {
                 reject(`Missing Canvas.`);
                 return;
index edcd098..0dcc8dc 100644 (file)
@@ -18,7 +18,7 @@ function test() {
         name: "Canvas.requestNode.missingDocument",
         description: "Getting the canvas node requires that WebInspector knows about the document.",
         test(resolve, reject) {
-            let canvases = WebInspector.canvasManager.canvases;
+            let canvases = WI.canvasManager.canvases;
             InspectorTest.expectEqual(canvases.length, 3, "The page should have three canvases.");
             if (!canvases.length) {
                 reject("Missing canvas.");
@@ -37,7 +37,7 @@ function test() {
         name: "Canvas.requestNode.validCanvasId",
         description: "Get the node id for each canvas on the page.",
         test(resolve, reject) {
-            let canvases = WebInspector.canvasManager.canvases;
+            let canvases = WI.canvasManager.canvases;
             let expectedLength = canvases.length;
             InspectorTest.assert(expectedLength === 3, "The page has 3 canvases.");
 
@@ -63,14 +63,14 @@ function test() {
             }
 
             canvases.forEach((canvas) => {
-                WebInspector.domTreeManager.requestDocument((documentNode) => {
+                WI.domTreeManager.requestDocument((documentNode) => {
                     CanvasAgent.requestNode(canvas.identifier, (error, nodeId) => {
                         if (error) {
                             reject(error);
                             return;
                         }
 
-                        nodesMap.set(canvas, WebInspector.domTreeManager.nodeForId(nodeId));
+                        nodesMap.set(canvas, WI.domTreeManager.nodeForId(nodeId));
                         if (nodesMap.size === expectedLength)
                             finish();
                     });
index b3e2ebe..a2a35ed 100644 (file)
@@ -17,7 +17,7 @@ function test()
         name: `Canvas.resolveCanvasContext2D.validIdentifier`,
         description: "Should return a valid object for the given canvas identifier.",
         test(resolve, reject) {
-            let canvas = WebInspector.canvasManager.canvases.find((canvas) => canvas.contextType === WebInspector.Canvas.ContextType.Canvas2D);
+            let canvas = WI.canvasManager.canvases.find((canvas) => canvas.contextType === WI.Canvas.ContextType.Canvas2D);
             if (!canvas) {
                 reject(`Missing Canvas.`);
                 return;
index 45098eb..6df42a0 100644 (file)
@@ -17,7 +17,7 @@ function test()
         name: `Canvas.resolveCanvasContextWebGL.validIdentifier`,
         description: "Should return a valid object for the given canvas identifier.",
         test(resolve, reject) {
-            let canvas = WebInspector.canvasManager.canvases.find((canvas) => canvas.contextType === WebInspector.Canvas.ContextType.WebGL);
+            let canvas = WI.canv