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

Side by Side 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, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <link rel="import" href="../resources/chai.sky" />
3 <link rel="import" href="/sky/framework/inspector/css-agent.sky" as="CSSAgent" / >
4 <script>
5 var fakeDOMAgent = {
6 getNodeForId: function(id) {
7 return document.documentElement;
8 }
9 };
10
11 var cssAgent = new CSSAgent(fakeDOMAgent);
12 cssAgent.enable();
13 var response = cssAgent.getComputedStyleForNode({nodeId: '1'});
14
15 assert.isTrue(response["computedStyle"].length > 0);
esprehn 2014/10/29 21:08:41 assert.isNotEmpty ?
16 internals.notifyTestComplete("Done!");
17 </script>
18 </html>
OLDNEW
« 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