Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core: Propagate URL query key-value pairs present in QUnit.config.urlCon... #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cezarykluczynski
Copy link

Core: Propagate URL query key-value pairs present in QUnit.config.urlConfig to suites.

What this commit do was done separatelly before, for example in jQuery UI Test Suite: https://raw.githubusercontent.com/jquery/jquery-ui/6df127a0b591d2a1437361f9cb6f3524a7b2e111/tests/unit/all.html

I think this should be the default way of handling top frame query string. I can't think of any scenario where this wouldn't be the desired behaviour.

@JamesMGreene
Copy link
Owner

I like the idea.

@scottgonzalez Can you take a peek and compare this to what jQuery UI is currently doing and/or needs? Thanks!

@@ -128,8 +182,24 @@ QUnit.testSuites = function( name, suites ) {
}
});

query = parseQuery( location.search );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you just use QUnit.urlParams here?

@scottgonzalez
Copy link
Contributor

I think this can be dramatically reduced, and it should probably have accompanying tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants