Skip to content

Merging generated clipboard API tests - #1242

Open
hallvors wants to merge 42 commits into
masterfrom
hallvors/clipboard-api-2
Open

hallvors wants to merge 42 commits into
masterfrom
hallvors/clipboard-api-2

Conversation

@hallvors

@hallvors hallvors commented Sep 13, 2014 •

Copy link
Copy Markdown
Contributor

These tests are generated from script elements inside spec source code using the Python script here:
http://dev.w3.org/2006/webapi/clipops/TC-generator/

@AFBarstow

Copy link
Copy Markdown
Contributor

@hallvors awesome :-)!

@sideshowbarker

Copy link
Copy Markdown
Member

See https://travis-ci.org/w3c/web-platform-tests/builds/43112700
The pathnames of three of the files that were renamed now exceed 150 chars:

$ python tools/scripts/lint.py
PATH LENGTH: /clipboard-apis/clipboardevent_interface_events_triggered_from_documentexeccommand_inside_trusted_events_do_affect_system_clipboard_copy_on_document.html longer than maximum path length (153 > 150)
PATH LENGTH: /clipboard-apis/clipboardevent_interface_events_triggered_from_documentexeccommand_inside_trusted_events_do_affect_system_clipboard_cut_on_document.html longer than maximum path length (152 > 150)
PATH LENGTH: /clipboard-apis/types_property_all_implementations_must_return_textplain_as_one_of_the_types_entries_when_there_is_plain_text_on_the_clipboard_paste_on_document.html longer than maximum path length (165 > 150)
There were 3 errors (PATH LENGTH: 3)

@hallvors

Copy link
Copy Markdown
Contributor Author

One major issue I know about: all setTimeout() usage should be fixed to use testharness.js conventions.

Apart from that, further review is welcome :)

@hallvors
hallvors force-pushed the hallvors/clipboard-api-2 branch from deaf7d1 to 1301bbf Compare July 27, 2015 12:38
@hallvors
hallvors force-pushed the hallvors/clipboard-api-2 branch from 68be7a9 to ff638f9 Compare July 27, 2015 16:02
@ayg ayg closed this Aug 28, 2016
@ayg
ayg deleted the hallvors/clipboard-api-2 branch August 28, 2016 13:58
@gsnedders
gsnedders restored the hallvors/clipboard-api-2 branch August 28, 2016 20:17
@gsnedders gsnedders reopened this Aug 28, 2016
@ayg ayg closed this Oct 26, 2016
@ayg
ayg deleted the hallvors/clipboard-api-2 branch October 26, 2016 17:38
@ayg
ayg restored the hallvors/clipboard-api-2 branch October 26, 2016 18:04
@ayg ayg reopened this Oct 26, 2016
@garykac

garykac commented May 1, 2017

Copy link
Copy Markdown
Member

@gked This PR is possibly of interest to you since you were looking into migrating clipboard tests into WPT.

@foolip

foolip commented Jun 12, 2018

Copy link
Copy Markdown
Member

I found this PR linked in https://github.com/w3c/clipboard-apis/blob/18e871aba0be2849c67ea8416f7bdf26de30562c/README.md. What is the status of this, anyone planning to finish it?

@wpt-pr-bot
wpt-pr-bot requested a review from garykac June 12, 2018 09:36
@gsnedders

Copy link
Copy Markdown
Member

Do we know if these were reviewed prior to landing in the clipboard API repo?

@gsnedders gsnedders left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A couple of major issues from a quick glance where tests are actually manual.

}
}
if(typeof triggerTestManually==='function'){
/* Tests that require user interaction define a "triggerTestManually()" function.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

All these tests need a -manual suffix.

(function(){
var t = async_test()
var dataToPaste="clipboard text" ;
var extPassCond="clipboard text" ;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Anything with an external pass condition can't be verified through JS and therefore needs to be -manual.

@gsnedders gsnedders closed this Jan 24, 2020
@gsnedders
gsnedders deleted the hallvors/clipboard-api-2 branch January 24, 2020 18:06
@gsnedders
gsnedders restored the hallvors/clipboard-api-2 branch January 24, 2020 18:40
@Hexcles Hexcles reopened this Jan 24, 2020
@ShahriarNasseri

Copy link
Copy Markdown

Could you delete w portable management.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.