Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_converter_unittest.py

Issue 2006273004: Change permissions of modules in webkitpy/w3c/ to be non-executable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python
2
3 # Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 1 # Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
4 # 2 #
5 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions 4 # modification, are permitted provided that the following conditions
7 # are met: 5 # are met:
8 # 6 #
9 # 1. Redistributions of source code must retain the above 7 # 1. Redistributions of source code must retain the above
10 # copyright notice, this list of conditions and the following 8 # copyright notice, this list of conditions and the following
11 # disclaimer. 9 # disclaimer.
12 # 2. Redistributions in binary form must reproduce the above 10 # 2. Redistributions in binary form must reproduce the above
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 # through the list to replace the double-digit tokens first 427 # through the list to replace the double-digit tokens first
430 index = len(test_properties) - 1 428 index = len(test_properties) - 1
431 while index >= 0: 429 while index >= 0:
432 # Use the unprefixed version 430 # Use the unprefixed version
433 test_prop = test_properties[index].replace('-webkit-', '') 431 test_prop = test_properties[index].replace('-webkit-', '')
434 # Replace the token 432 # Replace the token
435 html = html.replace('@test' + str(index) + '@', test_prop) 433 html = html.replace('@test' + str(index) + '@', test_prop)
436 index -= 1 434 index -= 1
437 435
438 return (test_properties, html) 436 return (test_properties, html)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698