Commit 420b52ac authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_corporate_identity&test: add line number for code in slideshow

parent 68456051
...@@ -32,8 +32,28 @@ html .ci-slideshow code { ...@@ -32,8 +32,28 @@ html .ci-slideshow code {
font-size: .4em; font-size: .4em;
} }
/* line number */
html .ci-slideshow pre {
counter-reset: lines;
}
html .ci-slideshow pre .line {
counter-increment: lines;
}
html .ci-slideshow pre .line::before {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
content: counter(lines);
text-align: right;
width:1em;
display: inline-block;
padding-right: 0.5em;
margin-right: 0.5em;
color: #BBB;
border-right: solid 1px;
}
/* /*
......
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
<value> <string>slide.css</string> </value> <value> <string>slide.css</string> </value>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>testCodeViewOnSlideshow-reference-snapshot-1.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>492</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>1192</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>testCodeViewOnSlideshow</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test for Code View On Slideshow</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><th rowspan="1" colspan="3">Test for Code View On Slideshow</th></tr>
</thead><tbody>
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<tr>
<td>open</td>
<td>${base_url}/web_page_module/template_test_slideshow_highlight_code_html/WebPage_exportAsSlideshow#/1/</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//h1[text()="App Configuration Router"]</td>
<td></td>
</tr>
<tr>
<td>verifyImageMatchSnapshot</td>
<td>//pre</td>
<td>20</td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
<section class="screenshot">
<h1>App Configuration Router</h1>
<p>&nbsp;</p>
<pre>
<code>&nbsp; &lt;body&gt;
&nbsp; &nbsp; &lt;script data-renderjs-configuration=&quot;configuration_manifest&quot; type=&quot;text/x-renderjs-configuration&quot;&gt;gadget_officejs_nice_editor.configuration&lt;/script&gt;
&nbsp; &nbsp; &lt;script data-renderjs-configuration=&quot;parent_portal_type&quot; type=&quot;text/x-renderjs-configuration&quot;&gt;Web Page Module&lt;/script&gt;
&nbsp; &nbsp; &lt;script data-renderjs-configuration=&quot;parent_relative_url&quot; type=&quot;text/x-renderjs-configuration&quot;&gt;web_page_module&lt;/script&gt;
&nbsp; &nbsp; &lt;script data-renderjs-configuration=&quot;portal_type&quot; type=&quot;text/x-renderjs-configuration&quot;&gt;Web Page&lt;/script&gt;
&nbsp; &nbsp; &lt;script data-renderjs-configuration=&quot;portal_skin_folder&quot; type=&quot;text/x-renderjs-configuration&quot;&gt;erp5_text_editor&lt;/script&gt;
&nbsp; &nbsp; &lt;script data-renderjs-configuration=&quot;app_actions&quot; type=&quot;text/x-renderjs-configuration&quot;&gt;(&#39;Web Page Module | text_editor_view&#39;)&lt;/script&gt;
&lt;script data-renderjs-configuration=&quot;app_allowed_sub_types&quot; type=&quot;text/x-renderjs-configuration&quot;&gt;&lt;/script&gt;
&nbsp; &nbsp; &lt;script data-renderjs-configuration=&quot;web_page_module_dict&quot; type=&quot;text/x-renderjs-configuration&quot;&gt;{&quot;title&quot;: &quot;Nice Text Documents&quot;, &quot;filter_action&quot;: 1, &quot;hide_add_button&quot;: 0}&lt;/script&gt;
&nbsp; &nbsp; &lt;script data-renderjs-configuration=&quot;app_view_reference&quot; type=&quot;text/x-renderjs-configuration&quot;&gt;&lt;/script&gt;
&nbsp; &nbsp; &lt;div&gt;&lt;/div&gt;
&nbsp; &lt;/body&gt;
&lt;/html&gt;</code>
</pre>
</section>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Web Page" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Access_contents_information_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Change_local_roles_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_View_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>content_md5</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>Template.Test.Slideshow.High.Light.Code</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>template_test_slideshow_highlight_code_html</string> </value>
</item>
<item>
<key> <string>language</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Web Page</string> </value>
</item>
<item>
<key> <string>short_title</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Template Test Slideshow High Light Code</string> </value>
</item>
<item>
<key> <string>version</string> </key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment