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

Side by Side Diff: sky/tests/layout/custom-dirty-bits.sky

Issue 1101793003: Expose minContentWidth/maxContentWidth and a callback for computing them. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: make variable names consistent Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 <import src="../resources/dump-as-render-tree.sky" /> 1 <import src="../resources/dump-as-render-tree.sky" />
2 2
3 <block>hello</block> 3 <block>hello</block>
4 4
5 <script> 5 <script>
6 import 'dart:sky'; 6 import 'dart:sky';
7 7
8 void main() { 8 void main() {
9 // This tests custom layout of text nodes inside non-paragraphs. 9 // This tests custom layout of text nodes inside non-paragraphs.
10 // They shouldn't show up in the render tree at all, so they 10 // They shouldn't show up in the render tree at all, so they
11 // don't need laying out. 11 // don't need laying out.
12 // This test passes if it doesn't crash and the render tree 12 // This test passes if it doesn't crash and the render tree
13 // has no RenderTexts. 13 // has no RenderTexts.
14 document.querySelector('block').setLayoutManager(() => {}); 14 document.querySelector('block').setLayoutManager(() {}, () {});
15 } 15 }
16 </script> 16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698