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

Unified Diff: sky/tests/inspector/css-computed-style.sky

Issue 662523003: Add a very minimal CSSAgent (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « sky/framework/inspector/runtime-agent.sky ('k') | sky/tests/inspector/css-computed-style-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/inspector/css-computed-style.sky
diff --git a/sky/tests/inspector/css-computed-style.sky b/sky/tests/inspector/css-computed-style.sky
new file mode 100644
index 0000000000000000000000000000000000000000..9662ca851ba59ad36bb5d4a3436236aec8ffff8d
--- /dev/null
+++ b/sky/tests/inspector/css-computed-style.sky
@@ -0,0 +1,18 @@
+<html>
+<link rel="import" href="../resources/chai.sky" />
+<link rel="import" href="/sky/framework/inspector/css-agent.sky" as="CSSAgent" />
+<script>
+var fakeDOMAgent = {
+ getNodeForId: function(id) {
+ return document.documentElement;
+ }
+};
+
+var cssAgent = new CSSAgent(fakeDOMAgent);
+cssAgent.enable();
+var response = cssAgent.getComputedStyleForNode({nodeId: '1'});
+
+assert.isTrue(response["computedStyle"].length > 0);
esprehn 2014/10/29 21:08:41 assert.isNotEmpty ?
+internals.notifyTestComplete("Done!");
+</script>
+</html>
« no previous file with comments | « sky/framework/inspector/runtime-agent.sky ('k') | sky/tests/inspector/css-computed-style-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698