Browse Source

Add raison d'être test

master
J. King 11 months ago
parent
commit
3f908275b8
  1. 70
      tests/cases/third-party/phpmf2/deep-nesting.html
  2. 170
      tests/cases/third-party/phpmf2/deep-nesting.json

70
tests/cases/third-party/phpmf2/deep-nesting.html

@ -0,0 +1,70 @@
<!DOCTYPE html>
<!--
This test case exposes poor performance in php-mf2 when microformat
structures are deeply nested. It is the test case which prompted the
creation of this library. It can be sourced here:
https://github.com/microformats/php-mf2/issues/247
-->
<html lang="pt-PT">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PAPER PRIME &#8211; A origem do seu papel</title>
</head>
<body>
<div class="site" id="page-top">
<!-- dynamic header start -->
<div data-colibri-id="111-h1" class="page-header style-1 style-local-111-h1 position-relative">
<!---->
<div data-colibri-navigation-overlap="true" role="banner" class="h-navigation_outer h-navigation_overlap style-2-outer style-local-111-h2-outer">
<!---->
<div id="navigation" data-colibri-component="navigation" data-colibri-id="111-h2" class="h-section h-navigation h-navigation d-flex style-2 style-local-111-h2">
<!---->
<div class="h-section-grid-container h-section-fluid-container">
<div data-nav-normal="">
<div data-colibri-id="111-h3" class="h-row-container h-section-boxed-container gutters-row-lg-0 gutters-row-md-0 gutters-row-2 gutters-row-v-lg-0 gutters-row-v-md-0 gutters-row-v-2 style-3 style-local-111-h3 position-relative">
<!---->
<div class="h-row justify-content-lg-center justify-content-md-center justify-content-center align-items-lg-stretch align-items-md-stretch align-items-stretch gutters-col-lg-0 gutters-col-md-0 gutters-col-2 gutters-col-v-lg-0 gutters-col-v-md-0 gutters-col-v-2">
<div class="h-column h-column-container d-flex h-col-none style-8-outer style-local-111-h10-outer">
<div data-colibri-id="111-h10" data-placeholder-provider="navigation-menu" class="d-flex h-flex-basis h-column__inner h-px-lg-0 h-px-md-0 h-px-0 v-inner-lg-0 v-inner-md-0 v-inner-0 style-8 style-local-111-h10 position-relative">
<!---->
<div class="w-100 h-y-container h-column__content h-column__v-align flex-basis-auto align-self-lg-center align-self-md-center align-self-center">
<!---->
<div data-colibri-component="dropdown-menu" role="navigation" h-use-smooth-scroll-all="true" data-colibri-id="111-h11" class="h-menu h-global-transition-all h-ignore-global-body-typography has-offcanvas-tablet h-menu-horizontal h-dropdown-menu style-9 style-local-111-h11 position-relative h-element">
<div data-colibri-id="111-h12" class="h-mobile-menu h-global-transition-disable style-10 style-local-111-h12 position-relative h-element">
<!---->
<div id="offcanvas-wrapper-111-h12" class="h-offcanvas-panel offcanvas offcanvas-right hide force-hide style-10-offscreen style-local-111-h12-offscreen">
<div data-colibri-id="111-h13" class="d-flex flex-column h-offscreen-panel style-11 style-local-111-h13 position-relative h-element">
<!---->
<div class="offscreen-header h-ui-empty-state-container">
<div data-colibri-id="111-h15" class="h-row-container gutters-row-lg-0 gutters-row-md-0 gutters-row-0 gutters-row-v-lg-0 gutters-row-v-md-0 gutters-row-v-0 style-12 style-local-111-h15 position-relative">
<!---->
<div class="h-row justify-content-lg-center justify-content-md-center justify-content-center align-items-lg-stretch align-items-md-stretch align-items-stretch gutters-col-lg-0 gutters-col-md-0 gutters-col-0 gutters-col-v-lg-0 gutters-col-v-md-0 gutters-col-v-0">
<!---->
<div class="h-column h-column-container d-flex h-col-none style-13-outer style-local-111-h16-outer">
<div data-colibri-id="111-h16" class="d-flex h-flex-basis h-column__inner h-px-lg-2 h-px-md-2 h-px-2 v-inner-lg-2 v-inner-md-2 v-inner-2 style-13 style-local-111-h16 position-relative">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- dynamic header end -->
</div><!-- #page -->
</body>
</html>

170
tests/cases/third-party/phpmf2/deep-nesting.json

@ -0,0 +1,170 @@
{
"items": [
{
"type": [
"h-navigation",
"h-section"
],
"id": "navigation",
"properties": {
},
"children": [
{
"type": [
"h-section-fluid-container",
"h-section-grid-container"
],
"properties": {
},
"children": [
{
"type": [
"h-row-container",
"h-section-boxed-container"
],
"properties": {
},
"children": [
{
"type": [
"h-row"
],
"properties": {
},
"children": [
{
"type": [
"h-col-none",
"h-column",
"h-column-container"
],
"properties": {
},
"children": [
{
"type": [
"h-flex-basis"
],
"properties": {
},
"children": [
{
"type": [
"h-y-container"
],
"properties": {
},
"children": [
{
"type": [
"h-dropdown-menu",
"h-element",
"h-global-transition-all",
"h-ignore-global-body-typography",
"h-menu",
"h-menu-horizontal"
],
"properties": {
},
"children": [
{
"type": [
"h-element",
"h-global-transition-disable",
"h-mobile-menu"
],
"properties": {
},
"children": [
{
"type": [
"h-offcanvas-panel"
],
"id": "offcanvas-wrapper-111-h12",
"properties": {
},
"children": [
{
"type": [
"h-element",
"h-offscreen-panel"
],
"properties": {
},
"children": [
{
"type": [
"h-ui-empty-state-container"
],
"properties": {
},
"children": [
{
"type": [
"h-row-container"
],
"properties": {
},
"children": [
{
"type": [
"h-row"
],
"properties": {
},
"children": [
{
"type": [
"h-col-none",
"h-column",
"h-column-container"
],
"properties": {
},
"children": [
{
"type": [
"h-flex-basis"
],
"properties": {
"name": [
""
]
}
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
],
"rels": {
},
"rel-urls": {
}
}
Loading…
Cancel
Save