Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: LayoutTests/inspector/elements/hide-shortcut.html

Issue 1204393002: DevTools: [CSS] promisify CSSStyleModel fetching methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/elements/hide-shortcut.html
diff --git a/LayoutTests/inspector/elements/hide-shortcut.html b/LayoutTests/inspector/elements/hide-shortcut.html
index f5bccdc7447891fd1c0f3ece5878703320883169..6dd0da54f3bec8eafa566a28af07dfdd0976a49b 100644
--- a/LayoutTests/inspector/elements/hide-shortcut.html
+++ b/LayoutTests/inspector/elements/hide-shortcut.html
@@ -44,14 +44,14 @@ function test()
function callback()
{
InspectorTest.addResult("=== Added hide shortcut ===");
- InspectorTest.cssModel.getComputedStyleAsync(parentNode.id, callback2);
+ InspectorTest.cssModel.computedStylePromise(parentNode.id).then(callback2);
}
function callback2(style)
{
InspectorTest.addResult("=== Parent node is hidden ===");
InspectorTest.addResult(style.getLiveProperty("visibility").propertyText);
- InspectorTest.cssModel.getComputedStyleAsync(childNode.id, callback3);
+ InspectorTest.cssModel.computedStylePromise(childNode.id).then(callback3);
}
function callback3(style)
@@ -69,14 +69,14 @@ function test()
function callback()
{
InspectorTest.addResult("=== Removed hide shortcut ===");
- InspectorTest.cssModel.getComputedStyleAsync(parentNode.id, callback2);
+ InspectorTest.cssModel.computedStylePromise(parentNode.id).then(callback2);
}
function callback2(style)
{
InspectorTest.addResult("=== Parent node is visible ===");
InspectorTest.addResult(style.getLiveProperty("visibility").propertyText);
- InspectorTest.cssModel.getComputedStyleAsync(childNode.id, callback3);
+ InspectorTest.cssModel.computedStylePromise(childNode.id).then(callback3);
}
function callback3(style)
@@ -114,7 +114,7 @@ function test()
function callback()
{
InspectorTest.addResult("=== Added hide shortcut in frame ===");
- InspectorTest.cssModel.getComputedStyleAsync(frameNode.id, callback2);
+ InspectorTest.cssModel.computedStylePromise(frameNode.id).then(callback2);
}
function callback2(style)
@@ -132,7 +132,7 @@ function test()
function callback()
{
- InspectorTest.cssModel.getComputedStyleAsync(pseudoNode.id, callback2);
+ InspectorTest.cssModel.computedStylePromise(pseudoNode.id).then(callback2);
}
function callback2(style)

Powered by Google App Engine
This is Rietveld 408576698