Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  TestDisplayPort.cpp

  Sprache: C
 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#include "apz/src/AsyncPanZoomController.h"
#include "mozilla/StaticPrefs_apz.h"
#include "gtest/gtest.h"

using namespace mozilla;

// Tests that display port size is monotonically increased depending on the
// composition size.
TEST(DisplayPortTest, MonotonicIncrease)
{
  CSSSize compositionSize(10001000);
  CSSToScreenScale2D dPPerCSS = CSSToScreenScale2D(1.01.0);

  CSSSize previousDisplayport;
  for (int32_t height = 100; height <= 3000; height++) {
    compositionSize.height = CSSCoord(height);
    CSSSize displayport =
        layers::AsyncPanZoomController::CalculateDisplayPortSize(
            compositionSize, CSSPoint(),
            layers::AsyncPanZoomController::ZoomInProgress::No, dPPerCSS);
    if (!previousDisplayport.IsEmpty()) {
      EXPECT_GT(displayport.height, previousDisplayport.height);
    }
    previousDisplayport = displayport;
  }
}

Messung V0.5 in Prozent
C=94 H=95 G=94

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-08-26) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Sind Recht und Freiheit ausreichend gewährt?

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=655579