l.s.u.j.t.t.TestCombo(ComboTestBase) : class documentation

Part of lp.scripts.utilities.js.tests.test_combo View In Hierarchy

No class docstring
Method test_parse_url_keeps_order Parsing a combo loader URL returns an ordered list of filenames.
Method test_combine_files_includes_filename Combining files should include their relative filename at the top.
Method test_combine_css_minifies_and_makes_relative Combining CSS files minifies and makes URLs in CSS
Method test_combine_css_handles_relative_links_from_top_level Combining CSS files handles making URLs relative even from the top
Method test_combine_css_leaves_absolute_urls_untouched Combining CSS files does not touch absolute URLs in
Method test_combine_css_leaves_data_uris_untouched Combining CSS files does not touch data uris in
Method test_combine_css_disable_minify It is possible to disable CSS minification altogether, while
Method test_combine_css_disable_rewrite_url It is possible to disable the rewriting of urls in the CSS
Method test_combine_css_disable_rewrite_url_and_minify It is possible to disable both the rewriting of urls in the
Method test_combine_css_adds_custom_prefix Combining CSS files minifies and makes URLs in CSS
Method test_missing_file_is_ignored If a missing file is requested we should still combine the others.
Method test_no_parent_hack If someone tries to hack going up the root, they'll get a miss.
Method test_rewrite_url_normalizes_parent_references URL references in CSS files get normalized for parent dirs.
Method test_no_absolute_path_hack If someone tries to fetch an absolute file, they'll get nothing.

Inherited from ComboTestBase:

Method setUp Undocumented
Method makeFile Create a temporary file and return the path to it.
Method makeDir Create a temporary directory and return the path to it.
Method makeSampleFile Undocumented
Method __cleanup Undocumented

Inherited from TestCase (via ComboTestBase):

Method becomeDbUser Commit, then log into the database as dbuser.
Method __str__ The string representation of a test is its id.
Method useContext Use the supplied context in this test.
Method makeTemporaryDirectory Create a temporary directory, and return its path.
Method installKarmaRecorder Set up and return a KarmaRecorder.
Method assertProvides Assert 'obj' correctly provides 'interface'.
Method assertNotifies Assert that a callable performs a given notification.
Method assertNoNotification Assert that no notifications are generated by the callable.
Method assertSqlAttributeEqualsDate Fail unless the value of the attribute is equal to the date.
Method assertTextMatchesExpressionIgnoreWhitespace Undocumented
Method assertIsInstance Assert that an instance is an instance of assert_class.
Method assertIsNot Assert that expected is not the same object as observed.
Method assertContentEqual Assert that 'iter1' has the same content as 'iter2'.
Method assertRaisesWithContent Check if the given exception is raised with given content.
Method assertBetween Assert that 'variable' is strictly between two boundaries.
Method assertVectorEqual Apply assertEqual to all given pairs in one go.
Method expectedLog Expect a log to be written that matches the regex.
Method pushConfig Push some key-value pairs into a section of the config.
Method attachOopses Undocumented
Method attachLibrarianLog Include the logChunks from fixture in the test details.
Method assertStatementCount Assert that the expected number of SQL statements occurred.
Method useTempDir Use a temporary directory for this test.
Method assertEmailHeadersEqual Assert that two email headers are equal.
Method assertStartsWith Undocumented
Method assertEndsWith Asserts that s ends with suffix.
Method checkPermissions Check if the used_permissions match expected_permissions.
Method assertEmailQueueLength Pop the email queue, assert its length, and return it.
Method _unfoldEmailHeader Unfold a multiline email header.
def test_parse_url_keeps_order(self):
Parsing a combo loader URL returns an ordered list of filenames.
def test_combine_files_includes_filename(self):
Combining files should include their relative filename at the top.
def test_combine_css_minifies_and_makes_relative(self):
Combining CSS files minifies and makes URLs in CSS declarations relative to the target path.
def test_combine_css_handles_relative_links_from_top_level(self):
Combining CSS files handles making URLs relative even from the top level (alongside combo.css).
def test_combine_css_leaves_absolute_urls_untouched(self):
Combining CSS files does not touch absolute URLs in declarations.
def test_combine_css_leaves_data_uris_untouched(self):
Combining CSS files does not touch data uris in declarations.
def test_combine_css_disable_minify(self):
It is possible to disable CSS minification altogether, while keeping the URL rewriting behaviour.
def test_combine_css_disable_rewrite_url(self):
It is possible to disable the rewriting of urls in the CSS file.
def test_combine_css_disable_rewrite_url_and_minify(self):
It is possible to disable both the rewriting of urls in the CSS file and minification, in which case the files are returned unchanged.
def test_combine_css_adds_custom_prefix(self):
Combining CSS files minifies and makes URLs in CSS declarations relative to the target path. It's also possible to specify an additional prefix for the rewritten URLs.
def test_missing_file_is_ignored(self):
If a missing file is requested we should still combine the others.
def test_no_parent_hack(self):
If someone tries to hack going up the root, they'll get a miss.
def test_rewrite_url_normalizes_parent_references(self):
URL references in CSS files get normalized for parent dirs.
def test_no_absolute_path_hack(self):
If someone tries to fetch an absolute file, they'll get nothing.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.