X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FLayoutTests%2Finspector%2Fview-events.html;h=5c62e5b02740c144e28796780ff8640822b5d5e3;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=7244c8e86e0c9c84f7304405052318177ca2ac6b;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/LayoutTests/inspector/view-events.html b/src/third_party/WebKit/LayoutTests/inspector/view-events.html index 7244c8e..5c62e5b 100644 --- a/src/third_party/WebKit/LayoutTests/inspector/view-events.html +++ b/src/third_party/WebKit/LayoutTests/inspector/view-events.html @@ -55,6 +55,8 @@ function test() this.showOnWasShown.show(this.showRoot || this.element); if (this.detachOnWasShown) this.detachOnWasShown.detach(); + if (this.resizeOnWasShown) + this.resizeOnWasShown.doResize(); }, willHide: function() @@ -69,6 +71,18 @@ function test() onResize: function() { InspectorTest.addResult(" " + this._viewName + ".onResize()"); + }, + + _applyCacheSize: function() + { + InspectorTest.addResult(" " + this._viewName + ".cacheSize()"); + WebInspector.View.prototype._applyCacheSize.call(this); + }, + + _processDiscardCachedSize: function() + { + InspectorTest.addResult(" " + this._viewName + ".discardCachedSize()"); + WebInspector.View.prototype._processDiscardCachedSize.call(this); } }; @@ -328,6 +342,17 @@ function test() childView.show(parentView1.element); childView.show(parentView2.element); next(); + }, + + function testResizeOnWasShown(next) + { + var parentView = new TestView("Parent"); + var childView = new TestView("Child"); + childView.show(parentView.element); + parentView.resizeOnWasShown = childView; + parentView.show(WebInspector.inspectorView.element); + parentView.detach(); + next(); } ]); }