Beispiel #1
0
}
?>
            <h1>Content breakdown by domain (First  View)</h1>
            <?php 
if ($isMultistep) {
    $accordionHelper = new AccordionHtmlHelper($firstViewResults);
    echo $accordionHelper->createAccordion("breakdown_fv", "domainBreakdown", "drawTable");
} else {
    $snippetFv = new DomainBreakdownHtmlSnippet($testInfo, $firstViewResults->getStepResult(1));
    echo $snippetFv->create();
}
if ($repeatViewResults) {
    echo "<br><hr><br>\n";
    echo "<h1>Content breakdown by domain (Repeat  View)</h1>\n";
    if ($isMultistep) {
        $accordionHelper = new AccordionHtmlHelper($repeatViewResults);
        echo $accordionHelper->createAccordion("breakdown_rv", "domainBreakdown", "drawTable");
    } else {
        $snippetRv = new DomainBreakdownHtmlSnippet($testInfo, $repeatViewResults->getStepResult(1));
        echo $snippetRv->create();
    }
}
?>
            
            <?php 
include 'footer.inc';
?>
        </div>
        <a href="#top" id="back_to_top">Back to top</a>

        <!--Load the AJAX API-->
Beispiel #2
0
        $stepResult = $testRunResults->getStepResult($i);
        $urlGenerator = $stepResult->createUrlGenerator("", false);
        $stepSuffix = "step" . $i;
        $class = $i % 2 == 0 ? " class='even'" : "";
        echo "<tr{$class}>\n";
        echo "<th>" . $stepResult->readableIdentifier() . "</th>";
        echo "<td><a href='#waterfall_view_{$stepSuffix}'>Waterfall View</a></td>";
        echo "<td><a href='#connection_view_{$stepSuffix}'>Connection View</a></td>";
        echo "<td><a href='#request_details_{$stepSuffix}'>Request Details</a></td>";
        echo "<td><a href='#request_headers_{$stepSuffix}'>Request Headers</a></td>";
        echo "<td><a href='" . $urlGenerator->stepDetailPage("customWaterfall", "width=930") . "'>Customize Waterfall</a></td>";
        echo "<td><a href='" . $urlGenerator->stepDetailPage("pageimages") . "'>All Images</a></td>";
        echo "</tr>";
    }
    echo "</table>\n<br>\n";
    $accordionHelper = new AccordionHtmlHelper($testRunResults);
}
?>

                <div style="text-align:center;">
                <h3 name="waterfall_view">Waterfall View</h3>
                <?php 
if ($isMultistep) {
    echo $accordionHelper->createAccordion("waterfall_view", "waterfall");
} else {
    $enableCsi = array_key_exists('enable_google_csi', $settings) && $settings['enable_google_csi'];
    $waterfallSnippet = new WaterfallViewHtmlSnippet($testInfo, $testRunResults->getStepResult(1), $enableCsi);
    echo $waterfallSnippet->create();
}
?>
                <br>
Beispiel #3
0
    echo $accordionHelper->createAccordion("breakdown_fv", "mimetypeBreakdown", "drawTable");
} else {
    $snippetFv = new MimetypeBreakdownHtmlSnippet($testInfo, $firstViewResults->getStepResult(1));
    echo $snippetFv->create();
    // defines the global JS object wptBreakdownData which contains the breakdown data at key
    // $snippetFv->getBreakdownId(), so it can be globally found from JS
}
?>
            <?php 
if ($repeatViewResults) {
    ?>
                <br><hr><br>
                <h1>Content breakdown by MIME type (Repeat  View)</h1>
                <?php 
    if ($isMultistep) {
        $accordionHelper = new AccordionHtmlHelper($repeatViewResults);
        echo $accordionHelper->createAccordion("breakdown_rv", "mimetypeBreakdown", "drawTable");
    } else {
        $snippetRv = new MimetypeBreakdownHtmlSnippet($testInfo, $repeatViewResults->getStepResult(1));
        echo $snippetRv->create();
    }
    ?>
            <?php 
}
?>
        </div>
        
        <?php 
include 'footer.inc';
?>
        <a href="#top" id="back_to_top">Back to top</a>
            }
        }
        echo "<td class='checklist'><a href='#checklist_step{$stepNum}'>Full Checklist</a></td>\n";
        echo "</tr>\n";
    }
    ?>
                </table>
            </div>
            <br>
            <?php 
    include './ads/optimization_middle.inc';
    ?>
            <br>
            <?php 
    // still multistep
    $accordionHelper = new AccordionHtmlHelper($testRunResults);
    echo $accordionHelper->createAccordion("review", "performanceOptimization");
} else {
    // singlestep
    $snippet = new PerformanceOptimizationHtmlSnippet($testInfo, $testRunResults->getStepResult(1));
    $snippet->setAdsFile(__DIR__ . '/ads/optimization_middle.inc');
    echo $snippet->create();
}
?>

            <?php 
echo '<p></p><br>';
include './ads/optimization_bottom.inc';
echo '<br>';
dumpOptimizationGlossary($settings);
?>