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

Side by Side Diff: sky/tests/styles/inline-style-crash.sky

Issue 1212163009: Port remaining Sky tests to the new world (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: add Created 5 years, 5 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
« no previous file with comments | « sky/tests/styles/inline-style.sky ('k') | sky/tests/styles/inline-style-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <foo />
3 <script>
4 import "../resources/third_party/unittest/unittest.dart";
5 import "../resources/unit.dart";
6
7 import "dart:sky";
8
9 void main() {
10 initUnit();
11
12 test('should not crash when setting style to null', () {
13 var foo = document.querySelector('foo');
14 expect(foo.style['color'], isNull);
15 foo.style["color"] = null; // This used to crash.
16 expect(foo.style['color'], isNull);
17 foo.style["color"] = "blue";
18 expect(foo.style['color'], equals("rgb(0, 0, 255)"));
19 foo.style["color"] = null;
20 expect(foo.style['color'], isNull);
21 foo.style["color"] = "blue";
22 expect(foo.style['color'], equals("rgb(0, 0, 255)"));
23 foo.style.removeProperty("color");
24 expect(foo.style['color'], isNull);
25 });
26 }
27 </script>
28 </html>
OLDNEW
« no previous file with comments | « sky/tests/styles/inline-style.sky ('k') | sky/tests/styles/inline-style-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698