Skip to content

Commit bce5be0

Browse files
committed
test_package: Add css, html, and js examples to readme
1 parent 6db990b commit bce5be0

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

testing/test_package/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,34 @@ and_yaml:
2323
- 3.14
2424
```
2525
26+
```css
27+
/* issue 1484 regression */
28+
#id {
29+
background: green;
30+
}
31+
32+
.class {
33+
background: red;
34+
}
35+
36+
div {
37+
background: green;
38+
}
39+
```
40+
41+
```html
42+
<div>
43+
<strong>Hello!</strong>
44+
<h1>World!</h1>
45+
</div>
46+
```
47+
48+
```js
49+
var f = function(a, b) {
50+
return a + b;
51+
};
52+
```
53+
2654
It sometimes generates warnings in commentRefs like this: [unknownThingy.FromSomewhere]
2755

2856
Be sure to check out other awesome packages on [pub][].

testing/test_package_docs/index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,28 @@ <h1>Best Package</h1>
6666
- "value"
6767
- 3.14
6868
</code></pre>
69+
<pre class="language-css prettyprint"><code class="language-css">/* issue 1484 regression */
70+
#id {
71+
background: green;
72+
}
73+
74+
.class {
75+
background: red;
76+
}
77+
78+
div {
79+
background: green;
80+
}
81+
</code></pre>
82+
<pre class="language-html prettyprint"><code class="language-html">&lt;div&gt;
83+
&lt;strong&gt;Hello!&lt;/strong&gt;
84+
&lt;h1&gt;World!&lt;/h1&gt;
85+
&lt;/div&gt;
86+
</code></pre>
87+
<pre class="language-js prettyprint"><code class="language-js">var f = function(a, b) {
88+
return a + b;
89+
};
90+
</code></pre>
6991
<p>It sometimes generates warnings in commentRefs like this: <code>unknownThingy.FromSomewhere</code></p>
7092
<p>Be sure to check out other awesome packages on <a href="https://pub.dartlang.org">pub</a>.</p>
7193
</section>

0 commit comments

Comments
 (0)